Skip to content

Commit

Permalink
Fix unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
ikeikeikeike committed Jul 11, 2012
1 parent cfead1c commit c68894b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion queryset_client/client.py
Expand Up @@ -158,8 +158,8 @@ def __iter__(self):
index = 0

def _clone(self, responses=None, klass=None, **kwargs):
klass = klass or self.__class__
responses = responses or self._responses
klass = klass or self.__class__

clone = klass(model=self.model, responses=responses, query=self._query)
clone.__dict__.update(kwargs)
Expand Down
3 changes: 3 additions & 0 deletions tests/base/tests/paginator.py
Expand Up @@ -54,16 +54,19 @@ def test_paginator(self):
self.assertTrue(page3.start_index() == 201)
self.assertTrue(page3.end_index() == 246)

num = 0
for num, i in enumerate(page1.object_list):
print num, i
pass
self.assertTrue(num == 99)

num = 0
for num, i in enumerate(page2.object_list):
print num, i
pass
self.assertTrue(num == 99)

num = 0
for num, i in enumerate(page3.object_list):
print num, i
pass
Expand Down

0 comments on commit c68894b

Please sign in to comment.