Exemple #1
0
    def test_convert_from_list_to_string(self):
        """
        Input: Strings representing cards separate by commas
        Output: List with int's
        """

        # Arrange
        cards_list = [Card.new('As'), Card.new('9h')]
        cards_string = str(Card.new('As')) + ',' + str(Card.new('9h'))

        # Act
        result = Player.convert_from_list_to_string(self, cards_list)

        # Assertion
        self.assertEqual(result, cards_string)
        self.assertIsInstance(result, str)