'Create a DigestCredentialFactory for testing'

def setUp(self):

    self.username = 'foobar'
    self.password = 'bazquux'
    self.realm = 'test    realm'
    self.algorithm = 'md5'
    self.cnonce = '29fc54aa1641c6fa0e151419361c8f23'
    self.qop = 'auth'
    self.uri = '/write/'
    self.clientAddress = IPv4Address('TCP', '10.2.3.4', 43125)
    self.method = 'GET'
    self.credentialFactory = DigestCredentialFactory(self.algorithm, self.realm)
