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

def test_MD5HashA1(self, _algorithm='md5', _hash=md5):

    nonce = 'abc123xyz'
    hashA1 = calcHA1(_algorithm, self.username, self.realm, self.password, nonce, self.cnonce)
    a1 = ':'.join((self.username, self.realm, self.password))
    expected = hexlify(_hash(a1).digest())
    self.assertEqual(hashA1, expected)
