diff options
| author | Tom Christie | 2012-01-22 20:19:34 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-01-22 20:19:34 +0000 |
| commit | e362344fbdc7c48d978cb87963b04953113a4348 (patch) | |
| tree | 01470cf72024019fffd06d9b9c9060beb0432d37 /djangorestframework/tests/mixins.py | |
| parent | d1ce9d3914010ddc9f177ff7d6c1a407efea5a1b (diff) | |
| download | django-rest-framework-e362344fbdc7c48d978cb87963b04953113a4348.tar.bz2 | |
Fix tests to work on all supported configurations.
Diffstat (limited to 'djangorestframework/tests/mixins.py')
| -rw-r--r-- | djangorestframework/tests/mixins.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/djangorestframework/tests/mixins.py b/djangorestframework/tests/mixins.py index 72e0b8b0..88b13dd5 100644 --- a/djangorestframework/tests/mixins.py +++ b/djangorestframework/tests/mixins.py @@ -41,8 +41,7 @@ class TestModelRead(TestModelsTestCase): mixin = ReadModelMixin() mixin.resource = GroupResource - with self.assertRaises(ErrorResponse): - response = mixin.get(request, 12345) + self.assertRaises(ErrorResponse, mixin.get, request, 12345) class TestModelCreation(TestModelsTestCase): |
