Beispiel #1
0
    def test_amount_of_cards(self):
        hand = Hand()
        self.assertEquals(hand.amount_of_cards(), 0)

        hand.cards = self.expected_cards
        self.assertEquals(hand.amount_of_cards(), 5)
Beispiel #2
0
    def test_has_correct_amount_of_cards(self):
        hand = Hand()
        self.assertFalse(hand.has_correct_amount_of_cards())

        hand.cards = self.expected_cards
        self.assertTrue(hand.has_correct_amount_of_cards())