class testDeck(TestCase): def setUp(self): self.deck = Deck() def testDeckCreation(self): pass def testThatCardsCanBeAdded(self): card = Mock() self.deck.addCard(card) self.assertIn(card, self.deck.cards)
def createDeck(self): deck = Deck() for _ in itertools.repeat(None, 60): card = self.createCard() deck.addCard(card) return deck