Пример #1
0
 def testSetX(self):
     explosion = Explosion(2)
     explosion.setX(4)
     self.assertEquals(4, explosion.getX())
Пример #2
0
 def testConstructor(self):
     explosion = Explosion(2)
     self.assertEquals(2, explosion.getX())
     self.assertEquals(0, explosion.getY())
     self.assertEquals(ExplosionVolume_Normal, explosion.getVolume())
     self.assertFalse(explosion.isBlowing())