def test_isstraight_lowstraight_returns5(self): hand = tools.make('straight_low') expected = 5 result = evaluator.is_straight(hand) self.assertEqual(expected, result)
def test_isstraight_highstraight_returnsA(self): hand = tools.make('straight_high') expected = 14 result = evaluator.is_straight(hand) self.assertEqual(expected, result)
def test_isstraight_nonstraight_returns0(self): hand = tools.make('wheeldraw') expected = 0 result = evaluator.is_straight(hand) self.assertEqual(expected, result)
def test_isstraight_midstraight_returnsPostiveNum(self): hand = tools.make('straight_mid') expected = True result = evaluator.is_straight(hand) > 0 self.assertEqual(expected, result)