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))
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())))