def test_random(self): # Just make sure the random code path does not assert, and returns something non-None. self.assertTrue(bool(Deal.random()))
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)