コード例 #1
0
ファイル: test_pypoker.py プロジェクト: caioceccon/PyPoker
    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)
コード例 #2
0
ファイル: test_pypoker.py プロジェクト: caioceccon/PyPoker
    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())