Example #1
0
 def test_filled_stack_from_amount(self):
     target = {
         '$1': 1,
         '$5': 1,
         '$10': 1,
         '$20': 0,
         '$25': 1,
         '$50': 1,
         '$100': 1
     }
     temp = ChipStack.filled_stack_from_amount(
         ChipStack.get_stack_value(target))
     for key in temp.keys():
         self.assertEqual(temp[key], target[key])
Example #2
0
 def test_get_stack_value(self):
     cs = ChipStack.from_standard_stack()
     self.assertEqual(300, ChipStack.get_stack_value(cs.stack))