Example #1
0
 def test_getcards_2_returns2cards(self):
     h = tools.get_cards(2)
     expected = 2
     result = len(h)
     self.assertEqual(expected, result)
Example #2
0
 def test_getcards_1_returns1card(self):
     h = tools.get_cards(1)
     expected = 1
     result = len(h)
     self.assertEqual(expected, result)
Example #3
0
 def test_is_validhand_6cards_returnsFalse(self):
     h = tools.get_cards(6)
     expected = False
     result = evaluator.is_validhand(h)
     self.assertEqual(expected, result)
Example #4
0
 def test_getcards_0_returns0cards(self):
     h = tools.get_cards(0)
     expected = 0
     result = len(h)
     self.assertEqual(expected, result)
Example #5
0
 def test_is_validhand_5cards_returnsTrue(self):
     h = tools.get_cards(5)
     expected = True
     result = evaluator.is_validhand(h)
     self.assertEqual(expected, result)