evorepo/news/tests.py

12 lines
325 B
Python
Raw Normal View History

2017-06-10 17:17:17 -07:00
from django.test import TestCase
class NewTest(TestCase):
def test_feed(self):
response = self.client.get('/feeds/news/')
self.assertEqual(response.status_code, 200)
2017-06-11 11:54:21 -07:00
def test_sitemap(self):
response = self.client.get('/sitemap-news.xml')
self.assertEqual(response.status_code, 200)