diff options
| author | tom christie tom@tomchristie.com | 2011-02-07 08:23:54 +0000 |
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2011-02-07 08:23:54 +0000 |
| commit | 027ffed21064b1ec304a1ea559104382313d76f4 (patch) | |
| tree | 8621c8741d76cc672da207cf314574a4fbd828d1 /djangorestframework/tests/methods.py | |
| parent | a8bcb2edc63564522b89b9950ea0882d6b25f24a (diff) | |
| download | django-rest-framework-027ffed21064b1ec304a1ea559104382313d76f4.tar.bz2 | |
Refactor a bunch of stuff into mixins, more tests
Diffstat (limited to 'djangorestframework/tests/methods.py')
| -rw-r--r-- | djangorestframework/tests/methods.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/tests/methods.py b/djangorestframework/tests/methods.py index e580ba02..833457f5 100644 --- a/djangorestframework/tests/methods.py +++ b/djangorestframework/tests/methods.py @@ -21,7 +21,7 @@ class TestMethodMixins(TestCase): def test_overloaded_method_mixin_interface(self): """Ensure the OverloadedPOSTMethodMixin interface is as expected.""" self.assertTrue(issubclass(OverloadedPOSTMethodMixin, MethodMixin)) - getattr(OverloadedPOSTMethodMixin, 'FORM_PARAM_METHOD') + getattr(OverloadedPOSTMethodMixin, 'METHOD_PARAM') getattr(OverloadedPOSTMethodMixin, 'determine_method') # Behavioural tests @@ -48,5 +48,5 @@ class TestMethodMixins(TestCase): def test_overloaded_POST_behaviour_determines_overloaded_method(self): """POST requests can be overloaded to another method by setting a reserved form field with OverloadedPOSTMethodMixin""" - request = self.req.post('/', {OverloadedPOSTMethodMixin.FORM_PARAM_METHOD: 'DELETE'}) + request = self.req.post('/', {OverloadedPOSTMethodMixin.METHOD_PARAM: 'DELETE'}) self.assertEqual(OverloadedPOSTMethodMixin().determine_method(request), 'DELETE') |
