package api

import (
	"net/http"
	"net/http/httptest"

	"golang.org/x/net/context"
)

func makeTestRequest(h func(context.Context, http.ResponseWriter, *http.Request), ctx context.Context, r *http.Request) *httptest.ResponseRecorder {
	w := httptest.NewRecorder()
	h(ctx, w, r)

	return w
}
