##// END OF EJS Templates
py3: replace list comprehension with for-loop due to scope...
py3: replace list comprehension with for-loop due to scope The scope of the list comprehension variable 'x' will be limited to the list comprehension in python3. Thus switching to a full loop (without this scope restriction) in preparation for python3.

File last commit:

r6180:8d98924c default
r6788:bfd7fc9a default
Show More
test_feed.py
22 lines | 779 B | text/x-python | PythonLexer
from kallithea.tests.base 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 """<rss version="2.0">""" 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 """<?xml version="1.0" encoding="utf-8"?>""" in response
assert """<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-us">""" in response