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