def METHOD_NAME(tmpdir, argparse_flag, argparse_value):
    """Test that invalid dates fail"""
    out_fn = str(tmpdir / "filtered.txt")
    meta_fn = write_metadata(tmpdir, (("strain","date"),
                                      ("SEQ_1","2020-03-23")))
    with pytest.raises(SystemExit) as e_info:
        parse_args(f'--metadata {meta_fn} --output-strains {out_fn} {argparse_flag} {argparse_value}')
    assert f"Invalid date '{argparse_value}'" in e_info.value.__context__.message