'A challenge can be parsed into a L{dict} with L{bytes} or L{list}
values.'

def test_parse(self):

    challenge = 'nonce="1234",qop="auth,auth-conf",charset=utf-8,algorithm=md5-sess,cipher="des,3des"'
    directives = self.mechanism._parse(challenge)
    self.assertEqual({'algorithm': 'md5-sess', 'nonce': '1234', 'charset': 'utf-8', 'qop': ['auth', 'auth-conf'], 'cipher': ['des', '3des']}, directives)
