コード例 #1
0
 def testCardInDeck(self):
     card = Card('S', 'T')
     deck = Deck()
     self.assertTrue(deck.card_in_deck(card))
コード例 #2
0
 def testDrawCard(self):
     deck = Deck()
     self.assertEqual(48, deck.get_size())
     card = deck.get_card()
     self.assertEqual(47, deck.get_size())
     self.assertFalse(deck.card_in_deck(card))