#NEWLINE# def test__parse( self ) : #NEWLINE# #INDENT# '\n        Test challenge decoding.\n\n        Specifically, check for multiple values for the C{qop} and C{cipher}\n        directives.\n        ' #NEWLINE# challenge = 'nonce="1234",qop="auth,auth-conf",charset=utf-8,algorithm=md5-sess,cipher="des,3des"' #NEWLINE# directives = self . mechanism . _parse ( directives ) #NEWLINE# self . assertEqual ( '1234' , directives [ 'nonce' ] ) #NEWLINE# self . assertEqual ( 'utf-8' , directives [ 'charset' ] ) #NEWLINE# self . assertIn ( 'auth' , directives [ 'qop' ] ) #NEWLINE# self . assertIn ( 'auth-conf' , directives [ 'qop' ] ) #NEWLINE# self . assertIn ( 'des' , directives [ 'cipher' ] ) #NEWLINE# self . assertIn ( '3des' , directives [ 'cipher' ] )