Commits

Anonymous committed f21c71f

Added minimal rss/atom mimetype coverage to the mimetype detection test.

Comments (0)

Files changed (1)

tests/test_modelview/tests.py

     def test_detecting_responder_by_mimetype(self):
         a = Article.objects.all()[0]
 
+        # test "application/rss+xml"
+        response = self.client.get('/articles/%s/' % a.slug, CONTENT_TYPE='application/rss+xml')
+        self.assertEqual(response.status_code, 200)
+
+        # test "application/atom+xml"
+        response = self.client.get('/articles/%s/' % a.slug, CONTENT_TYPE='application/atom+xml')
+        self.assertEqual(response.status_code, 200)
+
         # test 'text/html'
         response = self.client.get('/articles/%s/' % a.slug, CONTENT_TYPE='text/html')
         self.assertEqual(response.status_code, 200)