def test_straight_flush_tester_3(self): '''testcase highest straight_flush sf = ['AS','KS','QS','JS','TS'] ''' sf = ['AS','KS','QS','JS','TS'] actual = poker.straight_flush(sf) expected = True self.assertEqual (actual,expected)
def test_straight_flush_tester_2(self): '''testcase normal straight_flush sf = ['5H','6H','7H','8H','9H'] ''' sf = ['5H','6H','7H','8H','9H'] actual = poker.straight_flush(sf) expected = True self.assertEqual (actual,expected)
def test_straight_flush_tester_1(self): '''testcase lowest straight_flush sf = ['AC','2C','3C','4C','5C'] ''' sf = ['AC','2C','3C','4C','5C'] actual = poker.straight_flush(sf) expected = True self.assertEqual (actual,expected)
def test_straight_flush_2(self): """ Test straight flush with straight hand ['6C', 'TH', '9D', '7D', '8C'] """ st = ['6C', 'TH', '9D', '7D', '8C'] actual = poker.straight_flush(st) expected = False,0 self.assertEqual(actual,expected)
def test_straight_flush(self): """ Test straight flush with straight flush hand ['6H', 'TH', '9H', '7H', '8H'] """ sf = ['6H', 'TH', '9H', '7H', '8H'] actual = poker.straight_flush(sf) expected = True,9 self.assertEqual(actual,expected)
def test_poker_straight_flush2(self): '''Test case for checking straight flush''' actual = poker.straight_flush(['2D','3D','4C','5C','6D']) expected = False self.assertEqual(actual, expected)
def test_poker_straight_flush(self): '''Test case for checking straight flush''' actual = poker.straight_flush(['AC','2C','3C','4C','5C']) expected = True self.assertEqual(actual, expected)
def test_straight_flush_2(self): '''Test straight flush with ['AH', '5H', '4H', '3H', '2H']''' actual = poker.straight_flush(['AH', '5H', '4H', '3H', '2H']) expected = True self.assertEqual(actual, expected)
def test_straight_flush_1(self): '''Test straight flush with ['JC', 'TC', '9C', '8C', '7C']''' actual = poker.straight_flush(['JC', 'TC', '9C', '8C', '7C']) expected = True self.assertEqual(actual, expected)
def test_poker_straight_flush2(self): '''Test case for checking straight flush''' actual = poker.straight_flush(['2D', '3D', '4C', '5C', '6D']) expected = False self.assertEqual(actual, expected)
def test_poker_straight_flush(self): '''Test case for checking straight flush''' actual = poker.straight_flush(['AC', '2C', '3C', '4C', '5C']) expected = True self.assertEqual(actual, expected)
def test_check_straightflush(self): hand1 = poker.straight_flush([['Q', 'J', 'T', '9', '8'], ['S', 'S', 'S', 'S', 'S']]) self.assertEqual(hand1, 9) hand2 = poker.straight_flush([['A', 'J', '1', '4', '8'], ['D', 'S', 'H', 'S', 'S']]) self.assertEqual(hand2, 0)