예제 #1
0
 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
예제 #2
0
 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