def test_bad_file() -> None:
    ' Dies on bad file '
    bad = random_string()
    (rv, out) = getstatusoutput('{} {}'.format(RUN, bad))
    assert (rv != 0)
    assert out.lower().startswith('usage:')
    assert re.search(f"No such file or directory: '{bad}'", out)
Dies on bad file
def test_bad_file() -> None:
    '  '
    bad = random_string()
    (rv, out) = getstatusoutput('{} {}'.format(RUN, bad))
    assert (rv != 0)
    assert out.lower().startswith('usage:')
    assert re.search(f"No such file or directory: '{bad}'", out)