aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/mixins.py
diff options
context:
space:
mode:
authorTom Christie2012-01-22 20:19:34 +0000
committerTom Christie2012-01-22 20:19:34 +0000
commite362344fbdc7c48d978cb87963b04953113a4348 (patch)
tree01470cf72024019fffd06d9b9c9060beb0432d37 /djangorestframework/tests/mixins.py
parentd1ce9d3914010ddc9f177ff7d6c1a407efea5a1b (diff)
downloaddjango-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.py3
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):