def METHOD_NAME(self, cli):
    """
    Test ``jobs cancel`` for a not existing job.
    """
    result = cli.invoke(ckan, [u"jobs", u"cancel", u"does-not-exist"])
    assert result.exit_code == 1
    assert u"does-not-exist" in result.output