def test_issuited_2suitedcards_returnsTrue(self): cards = tools.convert_to_cards(['As', '2s']) expected = True result = evaluator.is_suited(cards) self.assertEqual(expected, result)
def test_issuited_2unsuitedcard_returnsFalse(self): cards = tools.convert_to_cards(['As', 'Ad']) expected = False result = evaluator.is_suited(cards) self.assertEqual(expected, result)
def test_issuited_1card_returnsTrue(self): cards = [card.Card('A', 's')] expected = True result = evaluator.is_suited(cards) self.assertEqual(expected, result)