diff options
| author | Tom Christie | 2012-02-15 01:38:23 -0800 |
|---|---|---|
| committer | Tom Christie | 2012-02-15 01:38:23 -0800 |
| commit | 426493a78f3003fdba39053b6af23b93b312a777 (patch) | |
| tree | 8f598a2af2d96b8d4ac1b85be2c6037dc5a65197 /djangorestframework/tests/views.py | |
| parent | ba1e3b46998254e12578d75428669751e105735b (diff) | |
| parent | 78daa32566cbdc9016d6c4df5429feb9684c8032 (diff) | |
| download | django-rest-framework-426493a78f3003fdba39053b6af23b93b312a777.tar.bz2 | |
Merge pull request #162 from poswald/master
Remove robots.txt, favicon.ico; namespace static files
Diffstat (limited to 'djangorestframework/tests/views.py')
| -rw-r--r-- | djangorestframework/tests/views.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/djangorestframework/tests/views.py b/djangorestframework/tests/views.py index ab5d75d6..d4189087 100644 --- a/djangorestframework/tests/views.py +++ b/djangorestframework/tests/views.py @@ -46,8 +46,6 @@ class MockResource(ModelResource): fields = ('foo', 'bar', 'baz') urlpatterns = patterns('djangorestframework.utils.staticviews', - url(r'^robots.txt$', 'deny_robots'), - url(r'^favicon.ico$', 'favicon'), url(r'^accounts/login$', 'api_login'), url(r'^accounts/logout$', 'api_logout'), url(r'^mock/$', MockView.as_view()), @@ -123,18 +121,6 @@ class ExtraViewsTests(TestCase): """Test the extra views djangorestframework provides""" urls = 'djangorestframework.tests.views' - def test_robots_view(self): - """Ensure the robots view exists""" - response = self.client.get('/robots.txt') - self.assertEqual(response.status_code, 200) - self.assertEqual(response['Content-Type'], 'text/plain') - - def test_favicon_view(self): - """Ensure the favicon view exists""" - response = self.client.get('/favicon.ico') - self.assertEqual(response.status_code, 200) - self.assertEqual(response['Content-Type'], 'image/vnd.microsoft.icon') - def test_login_view(self): """Ensure the login view exists""" response = self.client.get('/accounts/login') |
