'L{DigestCredentialFactory.decode} accepts a digest challenge response
even if the client address it is passed is L{None}.'

def test_responseWithoutClientIP(self):

    challenge = self.credentialFactory.getChallenge(None)
    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, None)
    self.assertTrue(creds.checkPassword(self.password))
    self.assertFalse(creds.checkPassword((self.password + 'wrong')))
