def test_paintImage(self): tile_sprite = TileSprite(manager, imageFilename, parent, x, y, gtk) tile_sprite._image = Mock() tile_sprite._image.blit = Mock() screen = None location = (x,y) tile_sprite.paint(screen, location) tile_sprite._image.blit.assert_called_once()
def test_paint(self): tile_sprite = TileSprite(manager, imageFilename, parent, x, y, gtk) tile_sprite._image = None screen = None location = (x,y) tile_sprite.paint(screen, location)