def test_get_as_currency(self): """ Test if decimal is properly 'transformed' to currency """ currency = AllVentures._get_as_currency('1234', False) self.assertEquals(currency, ('1234.00 PLN', D('0')))
def test_get_as_currency_total_cost(self): """ Test if total cost decimal is properly 'transformed' to currency """ currency = AllVentures._get_as_currency(1234, True) self.assertEquals(currency, ('1234.00 PLN', D('1234')))