test_feed.py
22 lines
| 774 B
| text/x-python
|
PythonLexer
r547 | from rhodecode.tests import * | |||
class TestFeedController(TestController): | ||||
def test_rss(self): | ||||
self.log_user() | ||||
response = self.app.get(url(controller='feed', action='rss', | ||||
r688 | repo_name=HG_REPO)) | |||
r1064 | ||||
assert response.content_type == "application/rss+xml" | ||||
assert """<rss version="2.0">""" in response | ||||
r547 | ||||
def test_atom(self): | ||||
self.log_user() | ||||
response = self.app.get(url(controller='feed', action='atom', | ||||
r688 | repo_name=HG_REPO)) | |||
r1064 | ||||
assert response.content_type == """application/atom+xml""" | ||||
assert """<?xml version="1.0" encoding="utf-8"?>""" in response | ||||
assert """<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-us">""" in response | ||||