Exemplo n.º 1
0
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)
Exemplo n.º 2
0
 def setUp(self):
     self.players = random.randint(1, 8)
     self.item = Game(self.players)