@@ -82,14 +82,12 @@ def test_one_rate(historical1_responder, output):
def test_conversion(historical1_responder, output):
config = build_config(historical1_responder, amount=10, from_currency='AED')
lines = lines_from_run(config, output)
# FIXME: Assertion probably changes after we deal with precision right.
assert next(lines).startswith('10 AED = 2.72297')
assert next(lines) == '10.00 AED = 2.72 USD\n'
assert next(lines, None) is None
def test_back_conversion(historical1_responder, output):
config = build_config(historical1_responder,
amount=2, from_currency='USD', to_currency='ALL')
assert next(lines) == '2 USD = 289.059586 ALL\n'
assert next(lines) == '2.00 USD = 289 ALL\n'