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