def test_checkHash(self):
        challenge = self.credentialFactory.getChallenge(self.clientAddress.host)

        nc = "00000001"
        clientResponse = self.formatResponse(
            nonce=challenge['nonce'],
            response=self.getDigestResponse(challenge, nc),
            nc=nc,
            opaque=challenge['opaque'])

        creds = self.credentialFactory.decode(clientResponse, self.method,
                                              self.clientAddress.host)
        self.assertTrue(verifyObject(IUsernameDigestHash, creds))

        cleartext = '%s:%s:%s' % (self.username, self.realm, self.password)
        hash = md5(cleartext)
        self.assertTrue(creds.checkHash(hash.hexdigest()))
        hash.update('wrong')
        self.assertFalse(creds.checkHash(hash.hexdigest()))
Given an arff attribute value (meta data), returns its type.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_digestauth.py/DigestAuthTests.test_checkHash--crossover with--dataset/ETHPy150Open scipy/scipy/scipy/io/arff/arffread.py/parse_type