#NEWLINE# def test_noOpaque( self ) : #NEWLINE# #INDENT# '\n        L{DigestCredentialFactory.decode} raises L{LoginFailed} if the response\n        has no opaque.\n        ' #NEWLINE# e = self . assertRaises ( LoginFailed , self . credentialFactory . decode , self . formatResponse ( ) , self . method , self . clientAddress . host ) #NEWLINE# self . assertEqual ( str ( e ) , 'Invalid response, no opaque given.' )