from kallithea.tests import base class TestFeedController(base.TestController): def test_rss(self): self.log_user() response = self.app.get(base.url(controller='feed', action='rss', repo_name=base.HG_REPO)) assert response.content_type == "application/rss+xml" assert """""" in response def test_atom(self): self.log_user() response = self.app.get(base.url(controller='feed', action='atom', repo_name=base.HG_REPO)) assert response.content_type == """application/atom+xml""" assert """""" in response assert """""" in response