Files @ cbdd583f1e58
Branch filter:

Location: kallithea/rhodecode/tests/functional/test_feed.py - annotation

Marcin Kuzminski
reverted copy of cached instance:

CPython

changelog
total_time 39.7253162861
average on req 0.993132907152

changesets
total_time 42.5156304836
average on req 0.425156304836

Total: 546 MB

changelog
total_time 35.5851216316
average on req 0.889628040791

changesets
total_time 30.3608012199
average on req 0.303608012199

Total: 475 MB
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