示例#1
0
 def test_random(self):
     # Just make sure the random code path does not assert, and returns something non-None.
     self.assertTrue(bool(Deal.random()))
示例#2
0
文件: board.py 项目: pdm55/saycbridge
 def __init__(self, number=None, deal=None, call_history=None):
     self.number = number or 1
     self.deal = deal or Deal.random()
     self.call_history = call_history or CallHistory.empty_for_board_number(number)