def METHOD_NAME(self, success=False, email=''):
    """
    Register a mock response for the third party user information endpoint;
    success indicates whether the response status code should be 200 or 400
    """
    if success:
        status = 200
        response = {self.UID_FIELD: self.social_uid}
        if email:
            response.update({'email': email})
        body = json.dumps(response)
    else:
        status = 400
        body = json.dumps({})
    self._setup_provider_response_with_body(status, body)