'L{calcResponse} accepts the C{\'md5\'} algorithm and returns an MD5 hash
of its parameters, excluding the nonce count, client nonce, and QoP
value if the nonce count and client nonce are L{None}'

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

    hashA1 = 'abc123'
    hashA2 = '789xyz'
    nonce = 'lmnopq'
    response = ((((hashA1 + ':') + nonce) + ':') + hashA2)
    expected = hexlify(_hash(response).digest())
    digest = calcResponse(hashA1, hashA2, _algorithm, nonce, None, None, None)
    self.assertEqual(expected, digest)
