def test_is_straight_invalid_card(self): argument = 'akqct' actual = is_poker(argument) expect = False self.assertEqual(expect, actual)
def test_is_poker_four_of_a_kind_numbers(self): expected = True actual = regular_expressions.is_poker("22223") self.assertEqual(expected, actual)
def test_is_poker_one_in_string(self): expected = False actual = regular_expressions.is_poker("12345") self.assertEqual(expected, actual)
def test_is_poker_three_of_a_kind(self): expected = True actual = regular_expressions.is_poker("222jk") self.assertEqual(expected, actual)
def test_is_poker_high_card(self): expected = True actual = regular_expressions.is_poker("aqj45") self.assertEqual(expected, actual)
def test_is_poker_full_hoyse(self): actual = regular_expressions.is_poker("88822") expected = True self.assertEqual(actual, expected)
def test_is_poker_straight_flush_ignoring_suits(self): actual = regular_expressions.is_poker("tjqka") expected = True self.assertEqual(actual, expected)
def test_is_poker_too_long_string(self): actual = regular_expressions.is_poker("aj2376") expected = False self.assertEqual(actual, expected)
def test_is_poker_very_long_string(self): actual = regular_expressions.is_poker("a2a898q3kjq") expected = False self.assertEqual(actual, expected)
def test_is_3_kind_invalid_card(self): argument = 'kkkac' actual = is_poker(argument) expect = False self.assertEqual(expect, actual)
def test_is_poker_one_char(self): actual = regular_expressions.is_poker("a") expected = False self.assertEqual(actual, expected)
def test_is_straight_number_and_letter(self): argument = '5432a' actual = is_poker(argument) expect = True self.assertEqual(expect, actual)
def test_is_straight_all_number(self): argument = '87654' actual = is_poker(argument) expect = True self.assertEqual(expect, actual)
def test_is_straight_all_letter(self): argument = 'akqjt' actual = is_poker(argument) expect = True self.assertEqual(expect, actual)
def test_is_poker_two_pair(self): actual = regular_expressions.is_poker("ttkka") expected = True self.assertEqual(actual, expected)
def test_is_poker_invalid_letters(self): actual = regular_expressions.is_poker("hello") expected = False self.assertEqual(actual, expected)
def test_is_poker_straight(self): actual = regular_expressions.is_poker("789tj") expected = True self.assertEqual(actual, expected)
def test_is_poker_invalid_number(self): actual = regular_expressions.is_poker("23461") expected = False self.assertEqual(actual, expected)
def test_is_poker_four_of_a_kind(self): actual = regular_expressions.is_poker("3333a") expected = True self.assertEqual(actual, expected)
def test_is_poker_five_identical_cards(self): actual = regular_expressions.is_poker("88888") expected = False self.assertEqual(actual, expected)
def test_is_poker_full_house_mix(self): expected = True actual = regular_expressions.is_poker("222jj") self.assertEqual(expected, actual)
def test_is_poker_only_valid_numbers(self): actual = regular_expressions.is_poker("59342") expected = True self.assertEqual(actual, expected)
def test_is_poker_pair(self): expected = True actual = regular_expressions.is_poker("66jqk") self.assertEqual(expected, actual)
def test_is_poker_empty_string(self): actual = regular_expressions.is_poker("") expected = False self.assertEqual(actual, expected)
def test_is_poker_six_cards(self): expected = False actual = regular_expressions.is_poker("ajqk34") self.assertEqual(expected, actual)
def test_is_poker_high_card_mix(self): actual = regular_expressions.is_poker("jkqt5") expected = True self.assertEqual(actual, expected)
def test_is_poker_five_of_a_kind(self): expected = False actual = regular_expressions.is_poker("jjjjj") self.assertEqual(expected, actual)
def test_is_poker_one_pair(self): actual = regular_expressions.is_poker("33taq") expected = True self.assertEqual(actual, expected)
def test_is_poker_invalid_letters(self): expected = False actual = regular_expressions.is_poker("3457o") self.assertEqual(expected, actual)
def test_is_full_house_number_and_letter(self): argument = '222aa' actual = is_poker(argument) expect = True self.assertEqual(expect, actual)