Commit dc35ca22 authored by Michal Čihař's avatar Michal Čihař

Add feeds tests

parent 7cf40e13
...@@ -83,3 +83,28 @@ class BasicViewTest(ViewTestCase): ...@@ -83,3 +83,28 @@ class BasicViewTest(ViewTestCase):
}) })
) )
self.assertContains(response, 'Test/Test') self.assertContains(response, 'Test/Test')
class FeedViewTest(ViewTestCase):
def test_view_rss(self):
response = self.client.get(
reverse('rss')
)
self.assertContains(response, 'Test/Test')
def test_view_rss_project(self):
response = self.client.get(
reverse('rss-project', kwargs={
'project': self.subproject.project.slug
})
)
self.assertContains(response, 'Test/Test')
def test_view_rss_subproject(self):
response = self.client.get(
reverse('rss-subproject', kwargs={
'project': self.subproject.project.slug,
'subproject': self.subproject.slug,
})
)
self.assertContains(response, 'Test/Test')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment