aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/methods.py
diff options
context:
space:
mode:
Diffstat (limited to 'djangorestframework/tests/methods.py')
-rw-r--r--djangorestframework/tests/methods.py27
1 files changed, 3 insertions, 24 deletions
diff --git a/djangorestframework/tests/methods.py b/djangorestframework/tests/methods.py
index 8e694017..7f6acf4f 100644
--- a/djangorestframework/tests/methods.py
+++ b/djangorestframework/tests/methods.py
@@ -1,33 +1,12 @@
-# TODO: Refactor these tests
from django.test import TestCase
from djangorestframework.compat import RequestFactory
from djangorestframework.request import RequestMixin
-#from djangorestframework.methods import MethodMixin, StandardMethodMixin, OverloadedPOSTMethodMixin
-#
-#
+
+
class TestMethodOverloading(TestCase):
def setUp(self):
self.req = RequestFactory()
-#
-# # Interface tests
-#
-# def test_method_mixin_interface(self):
-# """Ensure the base ContentMixin interface is as expected."""
-# self.assertRaises(NotImplementedError, MethodMixin().determine_method, None)
-#
-# def test_standard_method_mixin_interface(self):
-# """Ensure the StandardMethodMixin interface is as expected."""
-# self.assertTrue(issubclass(StandardMethodMixin, MethodMixin))
-# getattr(StandardMethodMixin, 'determine_method')
-#
-# def test_overloaded_method_mixin_interface(self):
-# """Ensure the OverloadedPOSTMethodMixin interface is as expected."""
-# self.assertTrue(issubclass(OverloadedPOSTMethodMixin, MethodMixin))
-# getattr(OverloadedPOSTMethodMixin, 'METHOD_PARAM')
-# getattr(OverloadedPOSTMethodMixin, 'determine_method')
-#
-# # Behavioural tests
-#
+
def test_standard_behaviour_determines_GET(self):
"""GET requests identified"""
view = RequestMixin()