def test_non_money_values_are_returned_untouched(self): money = money_to_default(1.5) self.assertEqual(money, Money(1.5, "EUR"))
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"))