aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2012-01-29 13:19:56 +0000
committerTom Christie2012-01-29 13:20:03 +0000
commitc7a805603405e21897b1788408beb5165685a2ec (patch)
tree5f48bae61d8cad43cf22736954af6ebaf3fe73ec
parent289e421543830caa153a8ceb4f9685edced84fad (diff)
downloaddjango-rest-framework-c7a805603405e21897b1788408beb5165685a2ec.tar.bz2
Use named args in mixin tests.
-rw-r--r--djangorestframework/tests/mixins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/tests/mixins.py b/djangorestframework/tests/mixins.py
index 88b13dd5..a7512efc 100644
--- a/djangorestframework/tests/mixins.py
+++ b/djangorestframework/tests/mixins.py
@@ -30,7 +30,7 @@ class TestModelRead(TestModelsTestCase):
mixin = ReadModelMixin()
mixin.resource = GroupResource
- response = mixin.get(request, group.id)
+ response = mixin.get(request, id=group.id)
self.assertEquals(group.name, response.name)
def test_read_404(self):
@@ -41,7 +41,7 @@ class TestModelRead(TestModelsTestCase):
mixin = ReadModelMixin()
mixin.resource = GroupResource
- self.assertRaises(ErrorResponse, mixin.get, request, 12345)
+ self.assertRaises(ErrorResponse, mixin.get, request, id=12345)
class TestModelCreation(TestModelsTestCase):