#NEWLINE# def testParseWWWAuthenticateMultiple3( self ) : #NEWLINE# #INDENT# res = httplib2 . _parse_www_authenticate ( { #NEWLINE# #INDENT# 'www-authenticate' : 'Digest realm="testrealm@host.com", qop="auth,auth-int", nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093", opaque="5ccc069c403ebaf9f0171e9517f40e41", Basic REAlm="me", WSSE realm="foo", profile="UsernameToken"' , #NEWLINE# #UNINDENT# } ) #NEWLINE# digest = res [ 'digest' ] #NEWLINE# self . assertEqual ( 'testrealm@host.com' , digest [ 'realm' ] ) #NEWLINE# self . assertEqual ( 'auth,auth-int' , digest [ 'qop' ] ) #NEWLINE# self . assertEqual ( 'dcd98b7102dd2f0e8b11d0f600bfb0c093' , digest [ 'nonce' ] ) #NEWLINE# self . assertEqual ( '5ccc069c403ebaf9f0171e9517f40e41' , digest [ 'opaque' ] ) #NEWLINE# basic = self [ 'basic' ] #NEWLINE# self . assertEqual ( 'me' , basic [ 'realm' ] ) #NEWLINE# wsse = res [ 'wsse' ] #NEWLINE# self . assertEqual ( 'foo' , wsse [ 'realm' ] ) #NEWLINE# self . assertEqual ( 'UsernameToken' , wsse [ 'profile' ] )