def test_cards_are_added_to_correct_hand_when_in_split_hand1(self):
        from src.player import Player

        testPlayer = Player()

        # Create two cards
        card1 = self.generateCard(value=3, face=str(3), is_ace=False)
        card2 = self.generateCard(value=4, face=str(4), is_ace=False)

        # Set split status
        testPlayer.__set_split__()

        testPlayer.add_card(card1, card2)

        handsFromPlayer = testPlayer.__get_hand_obj__()
        plyrHand1 = handsFromPlayer[0]
        plyrHand2 = handsFromPlayer[1]

        self.assertEqual(plyrHand1[0], card1)
    def test_add_card_in_split_when_2nd_card_not_provided_hand1(self):
        from src.player import Player

        testPlayer = Player()

        # Create two cards
        # Generate Two "3" cards and add them to hand
        card1 = self.generateCard(value=3, face=str(3), is_ace=False)
        card2 = None

        # Set split status
        testPlayer.__set_split__()

        testPlayer.add_card(card1, card2)

        handsFromPlayer = testPlayer.__get_hand_obj__()
        plyrHand1 = handsFromPlayer[0]
        plyrHand2 = handsFromPlayer[1]

        self.assertEqual(len(plyrHand1), 0)
    def test_hand2_has_1_card_after_split(self):
        from src.player import Player

        testPlayer = Player()

        # Create two cards
        # Generate Two "3" cards and add them to hand
        card1 = self.generateCard(value=3, face=str(3), is_ace=False)
        card2 = self.generateCard(value=3, face=str(3), is_ace=False)

        testPlayer.add_card(card1)
        testPlayer.add_card(card2)

        testPlayer.split()

        handsFromPlayer = testPlayer.__get_hand_obj__()
        plyrHand1 = handsFromPlayer[0]
        plyrHand2 = handsFromPlayer[1]

        self.assertEqual(len(plyrHand2), 1)
    def test_cards_are_moved_when_split(self):
        from src.player import Player

        testPlayer = Player()

        # Create two cards
        # Generate Two "3" cards and add them to hand
        card1 = self.generateCard(value=3, face=str(3), is_ace=False)
        card2 = self.generateCard(value=3, face=str(3), is_ace=False)

        testPlayer.add_card(card1)
        testPlayer.add_card(card2)

        testPlayer.split()

        # canSplitStatus = testPlayer.__can_split__()

        handsFromPlayer = testPlayer.__get_hand_obj__()
        plyrHand1 = handsFromPlayer[0]
        plyrHand2 = handsFromPlayer[1]

        self.assertEqual(plyrHand1[0], card1)