def test_bad_k() -> None:
    ' Dies on bad k '
    k = random.choice(range((- 10), 1))
    (rv, out) = getstatusoutput(f'{RUN} -k {k} {SAMPLE1}')
    assert (rv != 0)
    assert out.lower().startswith('usage:')
    assert re.search(f'-k "{k}" must be > 0', out)
Dies on bad k
def test_bad_k() -> None:
    '  '
    k = random.choice(range((- 10), 1))
    (rv, out) = getstatusoutput(f'{RUN} -k {k} {SAMPLE1}')
    assert (rv != 0)
    assert out.lower().startswith('usage:')
    assert re.search(f'-k "{k}" must be > 0', out)