def _check_repository(cls, *args, **kwargs): if not saw['add_host_key']: raise UnknownHostKeyError(hostname, key)
def missing_host_key(self, client, hostname, key): raise UnknownHostKeyError(hostname, key)
def _check_repository(cls, *args, **kwargs): raise UnknownHostKeyError(hostname, key)
def _check_repository(cls, *args, **kwargs): if not SSHClient.add_host_key.called: raise UnknownHostKeyError('example.com', key1)