Esempio n. 1
0
 def test_moveOkFalse(self):
     tile_engine = TileEngine(eventmanager, gamedata)
     tile_engine._map = ([[],[]], [[],[]])
     tile_engine.passable = []
     assert_equal(False, tile_engine.moveOk(0, 0))
Esempio n. 2
0
 def test_move(self):
     tile_engine = TileEngine(eventmanager, gamedata)
     tile_engine.ego = Mock()
     tile_engine.ego.position = (0,0)
     tile_engine.moveOk = Mock(return_value=None)
     assert_equal(None, tile_engine.move((0,1)))