@@ -128,3 +128,12 @@ def test_bad_date_parsing(date_s):
pass
else:
assert not config.args.date, "date parsed from {!r}".format(date_s)
def test_ambiguous_arglist_failure():
try:
# It's ambiguous if "2" is "the 2nd" or "2 EUR".
config = config_from(os.devnull, ['historical', '2', 'eur'])
except SystemExit:
assert not config.args, "ambiguous args parsed"