1 2 3 4 5 6 7
from django.test import TestCase class NewTest(TestCase): def test_feed(self): response = self.client.get('/feeds/news/') self.assertEqual(response.status_code, 200)