def try_split(value, expected): digits = max(0, -int(log10(currency.rounding))) result = float_split_str(value, precision_digits=digits) self.assertEqual( result, expected, 'Split error: got %s, expected %s' % (result, expected))
def try_split(value, expected): digits = max(0, -int(log10(currency.rounding))) result = float_split_str(value, precision_digits=digits) self.assertEqual(result, expected, 'Split error: got %s, expected %s' % (result, expected))