Пример #1
0
 def test_bot_train_public(self):
     player_id = 42
     owner_id = 24
     train_id = 9001
     required = 6
     p = Player(player_id, TestBot())
     o = Player(owner_id, TestBot())
     t = Train(train_id, required, o)
     t.make_public()
     bt = BotTrain(t, p)
     self.assertTrue(bt.can_add)
     self.assertFalse(bt.am_owner)
     self.assertFalse(bt.identity.mexican)
     self.assertEqual(o, bt.identity.owner)
Пример #2
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))