Пример #1
0
 def test_quantity_less_than_one(self):
     quantity = commands.amount_to_quantity(Money(25, 60), Money(25, 40))
     self.assertEqual(quantity, 0)
Пример #2
0
 def test_quantity_less(self):
     quantity = commands.amount_to_quantity(Money(25, 60), Money(102, 30))
     self.assertEqual(quantity, 3)
Пример #3
0
 def test_quantity_more(self):
     quantity = commands.amount_to_quantity(Money(25, 60), Money(102, 50))
     self.assertEqual(quantity, 4)
Пример #4
0
 def test_quantity_exact(self):
     quantity = commands.amount_to_quantity(Money(25, 60), Money(25, 60))
     self.assertEqual(quantity, 1)