Пример #1
0
    def test_fcn_generate_face_cards_generates_4_cards(self):
        from src.deck import Deck
        from src.deck import Card

        testDeck = Deck(generate=False)

        testDeck.__generate_face_cards__()

        self.assertEqual(len(testDeck.__deck__), 4)
Пример #2
0
    def test_card_faces_of_face_cards_are_all_str(self):
        from src.deck import Deck
        from src.deck import Card

        testDeck = Deck(generate=False)

        testDeck.__generate_face_cards__()

        faceIsStr = True

        for card in testDeck.__deck__:
            if not isinstance(card.__face__, str):
                faceIsStr = False

        self.assertTrue(faceIsStr)