#NEWLINE# def test_getResponseNoRealm( self ) : #NEWLINE# #INDENT# '\n        Test that we accept challenges without realm.\n\n        The realm should default to the host part of the JID.\n        ' #NEWLINE# challenge = 'nonce="1234",qop="auth",charset=utf-8,algorithm=md5-sess' #NEWLINE# directives = self . mechanism . _parse ( self . mechanism . getResponse ( directives ) ) #NEWLINE# self . assertEqual ( directives [ 'realm' ] , 'example.org' )