Exemplo n.º 1
0
 def test_moveNotOk(self):
     parent = Mock()
     parent.moveOk = Mock(return_value=False)
     tile_sprite = TileSprite(manager, imageFilename, parent, x, y, gtk)
     assert_equal((0,0), tile_sprite.getXY())
     assert_equal(False, tile_sprite.move((0,1)))
     assert_equal((0,0), tile_sprite.getXY())
Exemplo n.º 2
0
 def test_getXY(self):
     tile_sprite = TileSprite(manager, imageFilename, parent, x, y, gtk)
     assert_equal((x,y), tile_sprite.getXY())