Esempio n. 1
0
    def test_if_check_if_hand_contains_trieces_works_correctly_when_there_is_not_triece(
            self):
        player = Player()
        res = player.check_if_hand_contains_trieces({'10c', 'Jc', 'Qh', 'Kh'})
        exp = {'10c', 'Jc', 'Qh', 'Kh'}

        self.assertEqual(res, exp)
        self.assertEqual(player.trieces, [])
Esempio n. 2
0
    def test_if_check_if_hand_contains_trieces_works_correctly_when_there_is_a_triece(
            self):
        player = Player()
        res = player.check_if_hand_contains_trieces({'10c', 'Jc', 'Qc'})
        exp = set()

        self.assertEqual(res, exp)
        self.assertEqual(player.trieces, [['10c', 'Jc', 'Qc']])