Esempio n. 1
0
 def test_recurring(self):
     product = mock.Mock()
     product.recurrence = 'monthly'
     product.amount = Decimal('5.00')
     eq_(recurring_amount(product), '$5.00 per month')
Esempio n. 2
0
 def test_not_recurring(self):
     product = mock.Mock()
     product.recurrence = None
     product.amount = Decimal('5.00')
     eq_(recurring_amount(product), '$5.00')