def test_ticks(self): mp.start() mp.tick() self.assertEqual(mp.time, 1) mp.tick() mp.tick() mp.tick() self.assertEqual(mp.time, 4)
def test_reset(self): mp.start() mp.tick() mp.tick() mp.tick() self.assertEqual(mp.time, 3) mp.total = 10 mp.wins = 5 mp.reset() self.assertEqual(mp.time, 0) self.assertEqual(mp.total, 0) self.assertEqual(mp.wins, 0)