'complete a transaction, using the expected response from
the generic consumer.'

def _doResp(self, auth_req, exp_resp):

    self.consumer.consumer.response = exp_resp
    self.failUnless(self.session)
    resp = self.consumer.complete({}, None)
    if (self.endpoint.claimed_id != IDENTIFIER_SELECT):
        self.failUnless((resp.identity_url is self.identity_url))
    self.failIf((self.consumer._token_key in self.session))
    self.failUnlessEqual(resp.status, exp_resp.status)
    return resp
