class TestGame(TestItem): def setUp(self): self.players = random.randint(1, 8) self.item = Game(self.players) def test_players_set_in_constructor(self): self.assertEqual(self.item.players, self.players) def test_mark_completed_sets_completed_variable(self): self.item.mark_completed() self.assertTrue(self.item.completed)
def setUp(self): self.players = random.randint(1, 8) self.item = Game(self.players)