Files @ 4bdd0bf1b1f4
Branch filter:

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

Marcin Kuzminski
security bugfix: protected feeds, from unauthorized access, even without this, the feeds would crash and were unreadable, But proper way of securing it is with the secure decarators.
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))
        # Test response...

    def test_atom(self):
        self.log_user()
        response = self.app.get(url(controller='feed', action='atom',
                                    repo_name=HG_REPO))
        # Test response...