#NEWLINE# def test_requestAvatarIdWithoutSignature( self ) : #NEWLINE# #INDENT# '\n        L{SSHPublicKeyDatabase.requestAvatarId} should raise L{ValidPublicKey}\n        if the credentials represent a valid key without a signature.  This\n        tells the user that the key is valid for login, but does not actually\n        allow that user to do so without a signature.\n        ' #NEWLINE# def _checkKey( ignored ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# self . patch ( self . checker , 'checkKey' , _checkKey ) #NEWLINE# credentials = SSHPrivateKey ( b'test' , b'ssh-rsa' , keydata . publicRSA_openssh , None , None ) #NEWLINE# d = self . checker . requestAvatarId ( credentials ) #NEWLINE# return self . assertFailure ( d , ValidPublicKey )