evorepo/news/tests.py
2017-06-11 20:54:21 +02:00

12 lines
325 B
Python

from django.test import TestCase
class NewTest(TestCase):
def test_feed(self):
response = self.client.get('/feeds/news/')
self.assertEqual(response.status_code, 200)
def test_sitemap(self):
response = self.client.get('/sitemap-news.xml')
self.assertEqual(response.status_code, 200)