'L{calcHA1} accepts the C{\'md5-sess\'} algorithm and returns an MD5 hash
of its parameters, including the nonce and cnonce.'

def test_MD5SessionHashA1(self):

    nonce = 'xyz321abc'
    hashA1 = calcHA1('md5-sess', self.username, self.realm, self.password, nonce, self.cnonce)
    a1 = ((((self.username + ':') + self.realm) + ':') + self.password)
    ha1 = hexlify(md5(a1).digest())
    a1 = ((((ha1 + ':') + nonce) + ':') + self.cnonce)
    expected = hexlify(md5(a1).digest())
    self.assertEqual(hashA1, expected)
