'Bytes outside the ASCII range in the challenge are nevertheless
included in the response.'

def test_getResponseNonAsciiRealm(self):

    challenge = 'realm="\xc3\xa9chec.example.org",nonce="1234",qop="auth",charset=utf-8,algorithm=md5-sess'
    directives = self.mechanism._parse(self.mechanism.getResponse(challenge))
    del directives['cnonce'], directives['response']
    self.assertEqual({'username': 'test', 'nonce': '1234', 'nc': '00000001', 'qop': ['auth'], 'charset': 'utf-8', 'realm': '\xc3\xa9chec.example.org', 'digest-uri': 'xmpp/example.org'}, directives)
