diff options
| author | Sébastien Piquemal | 2012-02-23 08:54:25 +0200 |
|---|---|---|
| committer | Sébastien Piquemal | 2012-02-23 08:54:25 +0200 |
| commit | 242327d339fe1193a45c64cb20a2ba4c56044c3b (patch) | |
| tree | e11160647342421dfdfaa669760a43792fc80bc3 /djangorestframework/tests/mixins.py | |
| parent | c04cb5145c4398cfac090ca7eef032296a04446f (diff) | |
| download | django-rest-framework-242327d339fe1193a45c64cb20a2ba4c56044c3b.tar.bz2 | |
hack to fix ImmediateResponse rendering
Diffstat (limited to 'djangorestframework/tests/mixins.py')
| -rw-r--r-- | djangorestframework/tests/mixins.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/tests/mixins.py b/djangorestframework/tests/mixins.py index 85c95d61..25c57bd6 100644 --- a/djangorestframework/tests/mixins.py +++ b/djangorestframework/tests/mixins.py @@ -281,6 +281,6 @@ class TestPagination(TestCase): paginated URLs. So page 1 should contain ?page=2, not ?page=1&page=2 """ request = self.req.get('/paginator/?page=1') response = MockPaginatorView.as_view()(request) - content = json.loads(response.content) + content = response.raw_content self.assertTrue('page=2' in content['next']) self.assertFalse('page=1' in content['next']) |
