def test_refresh(self): deck = Deck(1) for i in range(10): deck.get_id() assert deck.num_cards < 51 deck.refresh() assert deck.num_cards == 52
def test_get_id(self): deck = Deck(1) assert deck.num_cards == 52 id = deck.get_id() assert type(id) == int assert 0 <= id < 52 assert deck.num_cards == 51