#NEWLINE# def test_MD5HashResponseExtra( self , _algorithm = 'md5' , _hash = md5 ) : #NEWLINE# #INDENT# "\n        L{calcResponse} accepts the C{'md5'} algorithm and returns an MD5 hash\n        of its parameters, including the nonce count, client nonce, and QoP\n        value if they are specified.\n        " #NEWLINE# hashA1 = 'abc123' #NEWLINE# hashA2 = '789xyz' #NEWLINE# nonce = 'lmnopq' #NEWLINE# nonceCount = '00000004' #NEWLINE# clientNonce = 'abcxyz123' #NEWLINE# qop = 'auth' #NEWLINE# response = ( '%s:%s:%s:%s:%s:%s' % ( hashA1 , nonce , nonceCount , clientNonce , qop , hashA2 ) ) #NEWLINE# expected = _hash ( response ) . hexdigest ( ) #NEWLINE# digest = calcResponse ( nonce , hashA2 , _algorithm , nonce , nonceCount , clientNonce , qop ) #NEWLINE# self . assertEqual ( expected , digest )