Skip to content

Commit

Permalink
Test for 2868
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjones authored and amercader committed Aug 16, 2012
1 parent 080be1b commit 3aac052
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ckan/tests/functional/test_group.py
Expand Up @@ -58,6 +58,20 @@ def setup_class(self):
def teardown_class(self):
model.repo.rebuild_db()

def test_atom_feed_page_zero(self):
group_name = 'deletetest'
CreateTestData.create_groups([{'name': group_name,
'packages': []}],
admin_user_name='russianfan')

offset = url_for(controller='feed', action='group',
id=group_name)
offset = offset + '?page=0'
res = self.app.get(offset)
assert '<feed' in res, res
assert 'xmlns="http://www.w3.org/2005/Atom"' in res, res
assert '</feed>' in res, res

def test_children(self):
if model.engine_is_sqlite() :
from nose import SkipTest
Expand Down

0 comments on commit 3aac052

Please sign in to comment.