Mercurial > kallithea
view rhodecode/tests/functional/test_feed.py @ 3608:87b0a652b6b1 beta
comments: "Comment on pull request" feels more natural
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 25 Mar 2013 16:30:40 +0100 |
parents | 113a8db22852 |
children | 7e5f8c12a3fc |
line wrap: on
line source
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 """<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