'Make a request with tempauth as auth
Acts as though the user had presented a token
granting groups as described in remote_user.
If remote_user contains the .service group, it emulates presenting
X-Service-Token containing a .service group.
:param conf: configuration for tempauth
:param remote_user: the groups the user belongs to. Examples:
acct:joe,acct                         user joe, no .admin
acct:joe,acct,AUTH_joeacct            user joe, jas .admin group
acct:joe,acct,AUTH_joeacct,.service   adds .service group
:param path: the path of the request
:param method: the method (defaults to GET)
:returns: response object'

def _make_authed_request(self, conf, remote_user, path, method='GET'):

    self.req = Request.blank(path)
    self.req.method = method
    self.req.remote_user = remote_user
    fake_app = FakeApp(iter([('200    OK', {}, '')]))
    test_auth = auth.filter_factory(conf)(fake_app)
    resp = self.req.get_response(test_auth)
    return resp
