Esempio n. 1
0
 def test_private_to_public(self):
     t = Train(2, 2, self.player_two)
     t.make_private()
     t.make_public()
     d = Domino(2, 3)
     self.assertTrue(t.add_domino(d, self.player_two))
Esempio n. 2
0
 def test_private_train(self):
     t = Train(2, 2, self.player_two)
     t.make_private()
     d = Domino(2, 3)
     self.assertTrue(t.add_domino(d, self.player_two))
     self.assertFalse(t.add_domino(d, Player(1, TestBot())))