def test_multiimageasset(self): a = ImageAsset("bunny.png", Frame(2, 2, 10, 14), 3, "horizontal", 2) self.assertEqual(a.gfxlist[0].basewidth, 71) self.assertEqual(a.gfxlist[0].framerect.x, 2) self.assertEqual(a.gfxlist[0].framerect.height, 14) self.assertEqual(len(a.gfxlist), 3) self.assertEqual(a.gfxlist[1].framerect.x, 14) self.assertEqual(a.gfxlist[2].framerect.x, 26) a.destroy()
def test_multiimageasset(self): a = ImageAsset("bunny.png", Frame(2,2,10,14), 3, 'horizontal', 2) self.assertEqual(a.GFXlist[0].basewidth, 71) self.assertEqual(a.GFXlist[0].framerect.x, 2) self.assertEqual(a.GFXlist[0].framerect.height, 14) self.assertEqual(len(a.GFXlist), 3) self.assertEqual(a.GFXlist[1].framerect.x, 14) self.assertEqual(a.GFXlist[2].framerect.x, 26) a.destroy()
def test_singleimageasset(self): a = ImageAsset("bunny.png") self.assertEqual(a.gfx.basewidth, 71) self.assertEqual(a.gfx.baseheight, 100) a.destroy()
def test_singleimageasset(self): a = ImageAsset("bunny.png") self.assertEqual(a.GFX.basewidth, 71) self.assertEqual(a.GFX.baseheight, 100) a.destroy()