diff --git a/tests/regressiontests/test_client_regress/models.py b/tests/regressiontests/test_client_regress/models.py
index 1281b91..b661a48 100644
a
|
b
|
class ResponseTemplateDeprecationTests(TestCase):
|
876 | 876 | def test_response_no_template(self): |
877 | 877 | response = self.client.get("/test_client_regress/request_methods/") |
878 | 878 | self.assertEqual(response.template, None) |
| 879 | |
| 880 | |
| 881 | class RawPostDataTest(TestCase): |
| 882 | def test_raw_post_data(self): |
| 883 | response = self.client.get("/test_client_regress/raw_post_data/") |
| 884 | No newline at end of file |
diff --git a/tests/regressiontests/test_client_regress/urls.py b/tests/regressiontests/test_client_regress/urls.py
index 650d80b..31edc96 100644
a
|
b
|
urlpatterns = patterns('',
|
26 | 26 | (r'^parse_unicode_json/$', views.return_json_file), |
27 | 27 | (r'^check_headers/$', views.check_headers), |
28 | 28 | (r'^check_headers_redirect/$', redirect_to, {'url': '/test_client_regress/check_headers/'}), |
| 29 | (r'^raw_post_data/$', views.raw_post_data), |
29 | 30 | ) |
diff --git a/tests/regressiontests/test_client_regress/views.py b/tests/regressiontests/test_client_regress/views.py
index 40aa61f..b9540be 100644
a
|
b
|
def check_headers(request):
|
91 | 91 | "A view that responds with value of the X-ARG-CHECK header" |
92 | 92 | return HttpResponse('HTTP_X_ARG_CHECK: %s' % request.META.get('HTTP_X_ARG_CHECK', 'Undefined')) |
93 | 93 | |
| 94 | |
| 95 | def raw_post_data(request): |
| 96 | return HttpResponse(request.raw_post_data) |
| 97 | No newline at end of file |