示例#1
0
    def test_compare_higher_value_same_suit(self):
        card1 = Card('spade', 1)
        card2 = Card('spade', 2)

        self.assertEqual(1, card2.compare_exact(card1))
示例#2
0
    def test_compare_lower_value_same_suit(self):
        card1 = Card('spade', 1)
        card2 = Card('spade', 2)

        self.assertEqual(-1, card1.compare_exact(card2))