Ignore:
Timestamp:
09/03/13 21:45:56 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Rebase:
66313336306139663137353133343631633733646335393536643436373233653030303733653563
Message:

Drop compatibility imports, and allow an optional module on classnames

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/tests/test_level.py

    r202 r209  
    44
    55from nagslang import game_object as go
     6from nagslang import puzzle
    67from nagslang.level import Level
    78from nagslang.yamlish import load
     
    7778                             sorted(puzzle_bits.keys()))
    7879            self.assertTrue(
    79                 isinstance(puzzle_bits['foo_proxy'], go.StateProxyPuzzler))
     80                isinstance(puzzle_bits['foo_proxy'], puzzle.StateProxyPuzzler))
    8081            self.assertEqual('foo', puzzle_bits['foo_proxy']._state_source)
    81             self.assertTrue(isinstance(puzzle_bits['foo'], go.CollidePuzzler))
     82            self.assertTrue(isinstance(puzzle_bits['foo'],
     83                                       puzzle.CollidePuzzler))
    8284
    8385        level = self.make_level('foo', {
     
    9799                {
    98100                    'name': 'foo_proxy',
    99                     'classname': 'StateProxyPuzzler',
     101                    'classname': 'puzzle.StateProxyPuzzler',
    100102                    'args': ['foo'],
    101103                },
Note: See TracChangeset for help on using the changeset viewer.