diff --git a/tests/browsable_api/no_auth_urls.py b/tests/browsable_api/no_auth_urls.py index 5e3604a66..bcbe06532 100644 --- a/tests/browsable_api/no_auth_urls.py +++ b/tests/browsable_api/no_auth_urls.py @@ -1,9 +1,10 @@ from __future__ import unicode_literals from django.conf.urls import patterns -from .views import MockView +from .views import MockView, CreateOnlyView urlpatterns = patterns( '', (r'^$', MockView.as_view()), + (r'^create/$', CreateOnlyView.as_view()), ) diff --git a/tests/browsable_api/test_browsable_api.py b/tests/browsable_api/test_browsable_api.py index 5f2647838..229dec17f 100644 --- a/tests/browsable_api/test_browsable_api.py +++ b/tests/browsable_api/test_browsable_api.py @@ -63,3 +63,11 @@ class NoDropdownWithoutAuthTests(TestCase): def test_dropdown_not_shown_when_logged_out(self): response = self.client.get('/') self.assertNotContains(response, '