Skip to content

Commit

Permalink
[#2554] Fix ranges in group list tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Aug 27, 2015
1 parent c9dffa5 commit cc3d652
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckan/tests/controllers/test_group.py
Expand Up @@ -156,7 +156,7 @@ class TestGroupIndex(helpers.FunctionalTestBase):
def test_group_index(self):
app = self._get_test_app()

for i in xrange(1, 25):
for i in xrange(1, 26):
_i = '0' + str(i) if i < 10 else i
factories.Group(
name='test-group-{0}'.format(_i),
Expand All @@ -166,7 +166,7 @@ def test_group_index(self):
action='index')
response = app.get(url)

for i in xrange(1, 21):
for i in xrange(1, 22):
_i = '0' + str(i) if i < 10 else i
assert_in('Test Group {0}'.format(_i), response)

Expand All @@ -177,7 +177,7 @@ def test_group_index(self):
page=1)
response = app.get(url)

for i in xrange(1, 21):
for i in xrange(1, 22):
_i = '0' + str(i) if i < 10 else i
assert_in('Test Group {0}'.format(_i), response)

Expand All @@ -188,7 +188,7 @@ def test_group_index(self):
page=2)
response = app.get(url)

for i in xrange(22, 25):
for i in xrange(22, 26):
assert_in('Test Group {0}'.format(i), response)

assert 'Test Group 21' not in response

0 comments on commit cc3d652

Please sign in to comment.