Beispiel #1
0
 def test_get_description_royalflush_returnsAHigh(self):
     h = tools.make('royalflush')
     val = ev.get_value(h)
     expected = 'A High'
     result = ev.get_description(val, h)
     self.assertEqual(expected, result)
Beispiel #2
0
 def test_get_description_straightflushhigh_returnKHigh(self):
     h = tools.make('straightflush_high')
     val = ev.get_value(h)
     expected = 'K High'
     result = ev.get_description(val, h)
     self.assertEqual(expected, result)
Beispiel #3
0
 def test_get_description_pairhigh_returnsAs(self):
     h = tools.make('pair_high')
     val = ev.get_value(h)
     expected = 'A\'s'
     result = ev.get_description(val, h)
     self.assertEqual(expected, result)
Beispiel #4
0
 def test_get_description_pairlow_returns2s(self):
     h = tools.make('pair_low')
     val = ev.get_value(h)
     expected = '2\'s'
     result = ev.get_description(val, h)
     self.assertEqual(expected, result)
Beispiel #5
0
 def test_get_description_straightlow_return5High(self):
     h = tools.make('straight_low')
     val = ev.get_value(h)
     expected = '5 High'
     result = ev.get_description(val, h)
     self.assertEqual(expected, result)
Beispiel #6
0
 def test_get_description_flushlow_returns7high(self):
     h = tools.make('flush_low')
     val = ev.get_value(h)
     expected = '7 High'
     result = ev.get_description(val, h)
     self.assertEqual(expected, result)
Beispiel #7
0
 def test_get_description_fullhouselow_returns2sfullof3s(self):
     h = tools.make('fullhouse_low')
     val = ev.get_value(h)
     expected = '2\'s full of 3\'s'
     result = ev.get_description(val, h)
     self.assertEqual(expected, result)
Beispiel #8
0
 def test_get_description_fullhousehigh_returnsAsfullofKs(self):
     h = tools.make('fullhouse_high')
     val = ev.get_value(h)
     expected = 'A\'s full of K\'s'
     result = ev.get_description(val, h)
     self.assertEqual(expected, result)
Beispiel #9
0
 def desc(self):
     return evaluator.get_description(self.value(), self.cards)