def METHOD_NAME(self):
    user = user_factory()
    # The test csv does not contain an entry for this user.
    apikey = APIKey.new_jwt_credentials(user=user)
    old_secret = apikey.secret
    stdout = io.StringIO()
    call_command('revoke_api_keys', self.csv_path, stdout=stdout)
    stdout.seek(0)
    output = stdout.readlines()
    assert output[0] == ('Ignoring APIKey user:12345:666, it does not exist.\n')
    assert output[1] == ('Ignoring APIKey user:67890:333, it does not exist.\n')
    # APIKey is still active, secret hasn't changed, there are no
    # additional APIKeys.
    apikey.reload()
    assert apikey.secret == old_secret
    assert apikey.is_active
    assert APIKey.objects.filter(user=user).count() == 1