示例#1
0
    def test_if_check_if_hand_contains_quintes_works_correctly_when_there_is_a_quinte(
            self):
        player = Player()
        res = player.check_if_hand_contains_quintes(
            {'10h', 'Jh', 'Qh', 'Kh', 'Ah'})
        exp = set()

        self.assertEqual(res, exp)
        self.assertEqual(player.quintes, [['10h', 'Jh', 'Qh', 'Kh', 'Ah']])
示例#2
0
    def test_if_check_if_hand_contains_quintes_works_correctly_when_there_is_no_quinte(
            self):
        player = Player()
        res = player.check_if_hand_contains_quintes(
            {'10h', 'Jh', 'Qc', 'Kc', 'As'})
        exp = {'10h', 'Jh', 'Qc', 'Kc', 'As'}

        self.assertEqual(res, exp)
        self.assertEqual(player.quintes, [])