Пример #1
0
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)
Пример #2
0
	def createDeck(self):
		deck = Deck()
		for _ in itertools.repeat(None, 60):
			card = self.createCard()
			deck.addCard(card)
		return deck