'The response to a challenge without a realm uses the host part of the
JID as the realm.'

def test_getResponseNoRealm(self):

    challenge = 'nonce="1234",qop="auth",charset=utf-8,algorithm=md5-sess'
    directives = self.mechanism._parse(self.mechanism.getResponse(challenge))
    self.assertEqual(directives['realm'], 'example.org')
