def test_can_split_true_when_able_fcn(self): from src.player import Player testPlayer = Player() # Generate Two cards and add them to hand testPlayer.add_card( self.generateCard(value=3, face=str(3), is_ace=False)) testPlayer.add_card( self.generateCard(value=2, face=str(2), is_ace=False)) canSplitStatus = testPlayer.__can_split__() self.assertFalse(canSplitStatus)
def test_can_split_true_when_able_fcn(self): from src.player import Player testPlayer = Player() # Create two cards # Generate Two "3" cards and add them to hand for card in range(0, 2): testPlayer.add_card( self.generateCard(value=3, face=str(3), is_ace=False)) canSplitStatus = testPlayer.__can_split__() self.assertTrue(canSplitStatus)