def METHOD_NAME(self, bash):
    with pytest.raises(AssertionError) as ex:
        _ = assert_bash_exec(
            bash, "_comp_get_words dummy", want_output=True
        )
    ex.match("dummy.* unknown argument")