Example #1
0
 def test_non_money_values_are_returned_untouched(self):
     money = money_to_default(1.5)
     self.assertEqual(money, Money(1.5, "EUR"))
Example #2
0
 def test_non_money_values_are_returned_untouched(self):
     money = money_to_default(1.5)
     self.assertEqual(money, Money(1.5, "EUR"))
Example #3
0
 def test_money_instances_are_converted_to_default_currency(self):
     money = money_to_default(Money(1.0, "USD"))
     self.assertEqual(money, Money(0.74, "EUR"))
Example #4
0
 def test_money_instances_are_converted_to_default_currency(self):
     money = money_to_default(Money(1.0, "USD"))
     self.assertEqual(money, Money(0.74, "EUR"))