Exemplo n.º 1
0
 def test_accelerate(self):
     for tup in self.expected_points:
         t_disc = DummyDisc(100, 100, 1, 26, [(0, 800), (0, 600)])
         t_disc.vel = Vector(tup[0][0], tup[0][1])
         t_disc.accelerate(tup[1][0], tup[1][1])
         result = t_disc.vel.x, t_disc.vel.y
         self.assertEqual(tup[2], result)
Exemplo n.º 2
0
 def test_move(self):
     for tup in self.expected_points:
         t_disc = DummyDisc(tup[0][0], tup[0][1], 1, 26, [(0, 800), (0, 600)])
         t_disc.move(tup[1][0], tup[1][1])
         result = t_disc.pos.x, t_disc.pos.y
         self.assertEqual(tup[2], result)