diff options
| author | Tom Christie | 2011-05-12 15:11:14 +0100 | 
|---|---|---|
| committer | Tom Christie | 2011-05-12 15:11:14 +0100 | 
| commit | b5b231a874c7d8d54b1d3849cb95337f15bac9c6 (patch) | |
| tree | f0d891b40038d9ef23a9656163b42f3f95c3332b /djangorestframework/tests | |
| parent | 15f9e7c56699d31043782045a9fe47c354f612cb (diff) | |
| download | django-rest-framework-b5b231a874c7d8d54b1d3849cb95337f15bac9c6.tar.bz2 | |
yet more API cleanup
Diffstat (limited to 'djangorestframework/tests')
| -rw-r--r-- | djangorestframework/tests/accept.py | 4 | ||||
| -rw-r--r-- | djangorestframework/tests/files.py | 2 | ||||
| -rw-r--r-- | djangorestframework/tests/validators.py | 2 | 
3 files changed, 4 insertions, 4 deletions
diff --git a/djangorestframework/tests/accept.py b/djangorestframework/tests/accept.py index c5a3f69e..293a7284 100644 --- a/djangorestframework/tests/accept.py +++ b/djangorestframework/tests/accept.py @@ -40,9 +40,9 @@ class UserAgentMungingTest(TestCase):              self.assertEqual(resp['Content-Type'], 'text/html')      def test_dont_rewrite_msie_accept_header(self): -        """Turn off REWRITE_IE_ACCEPT_HEADER, send MSIE user agent strings and ensure +        """Turn off _IGNORE_IE_ACCEPT_HEADER, send MSIE user agent strings and ensure          that we get a JSON response if we set a */* accept header.""" -        view = self.MockView.as_view(REWRITE_IE_ACCEPT_HEADER=False) +        view = self.MockView.as_view(_IGNORE_IE_ACCEPT_HEADER=False)          for user_agent in (MSIE_9_USER_AGENT,                             MSIE_8_USER_AGENT, diff --git a/djangorestframework/tests/files.py b/djangorestframework/tests/files.py index fc82fd83..afa59b4e 100644 --- a/djangorestframework/tests/files.py +++ b/djangorestframework/tests/files.py @@ -2,7 +2,7 @@ from django.test import TestCase  from django import forms  from djangorestframework.compat import RequestFactory  from djangorestframework.views import BaseView -from djangorestframework.resource import FormResource +from djangorestframework.resources import FormResource  import StringIO  class UploadFilesTests(TestCase): diff --git a/djangorestframework/tests/validators.py b/djangorestframework/tests/validators.py index 52a675d2..fb09c5ba 100644 --- a/djangorestframework/tests/validators.py +++ b/djangorestframework/tests/validators.py @@ -5,7 +5,7 @@ from djangorestframework.compat import RequestFactory  from djangorestframework.validators import BaseValidator, FormValidator, ModelFormValidator  from djangorestframework.response import ErrorResponse  from djangorestframework.views import BaseView -from djangorestframework.resource import Resource +from djangorestframework.resources import Resource  class TestValidatorMixinInterfaces(TestCase):  | 
