From 92b5a455da87c1d71d81903ea666daafb6b79725 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Mon, 11 Apr 2011 13:14:51 +0100 Subject: Test cleanup --- djangorestframework/tests/methods.py | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) (limited to 'djangorestframework/tests') 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() -- cgit v1.2.3