Ejemplo n.º 1
0
    def test_fcn_generate_numeric_cards_generates_9_cards(self):
        from src.deck import Deck
        from src.deck import Card

        testDeck = Deck(generate=False)

        testDeck.__generate_numeric_cards__()

        self.assertEqual(len(testDeck.__deck__), 9)
Ejemplo n.º 2
0
    def test_card_faces_of_numeric_cards_are_all_str(self):
        from src.deck import Deck
        from src.deck import Card

        testDeck = Deck(generate=False)

        testDeck.__generate_numeric_cards__()

        faceIsStr = True

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

        self.assertTrue(faceIsStr)