Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad BinOpAdd NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num Num keyword Num Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Num attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num Num keyword Num keyword Num Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Num attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr decorator_list
N/A N/A Paginator tests. __future__ unicode_literals django.test TestCase el_pagination paginators PaginatorTestMixin N/A object N/A N/A Base test mixin for paginators.

    Subclasses (actual test cases) must define the ``paginator_class`` name.
     setUp N/A N/A self N/A N/A N/A N/A self items N/A list N/A range 30 N/A N/A self per_page 7 N/A N/A self paginator N/A N/A self paginator_class N/A self items N/A self per_page orphans 2 N/A test_object_list N/A N/A self N/A N/A N/A first_page N/A N/A self paginator first_page N/A expected N/A N/A self items N/A first_page N/A first_page N/A self per_page N/A object_list N/A N/A N/A N/A self paginator page 2 object_list N/A N/A N/A self assertSequenceEqual expected object_list N/A test_orphans N/A N/A self N/A N/A N/A object_list N/A N/A N/A N/A self paginator page 4 object_list N/A N/A N/A self assertSequenceEqual N/A N/A self items N/A -9 object_list N/A test_no_orphans N/A N/A self N/A N/A N/A paginator N/A N/A self paginator_class N/A range 11 8 orphans 2 N/A object_list N/A N/A N/A paginator page 2 object_list N/A N/A N/A self assertEqual 3 N/A len object_list N/A test_empty_page N/A N/A self N/A N/A N/A N/A N/A self assertRaises N/A paginators EmptyPage N/A N/A N/A N/A N/A self paginator page 5 N/A test_invalid_page N/A N/A self N/A N/A N/A N/A N/A self assertRaises N/A paginators PageNotAnInteger N/A N/A N/A N/A N/A self paginator page __not_valid__ N/A N/A N/A self assertRaises N/A paginators EmptyPage N/A N/A N/A N/A N/A self paginator page 0 N/A N/A DifferentFirstPagePaginatorTestMixin N/A PaginatorTestMixin N/A N/A Base test mixin for paginators.

    This time the paginator defined in ``setUp`` has different number of
    items on the first page.
    Subclasses (actual test cases) must define the ``paginator_class`` name.
     setUp N/A N/A self N/A N/A N/A N/A self items N/A list N/A range 26 N/A N/A self per_page 7 N/A N/A self paginator N/A N/A self paginator_class N/A self items N/A self per_page first_page 3 orphans 2 N/A test_no_orphans N/A N/A self N/A N/A N/A paginator N/A N/A self paginator_class N/A range 11 5 first_page 3 orphans 2 N/A object_list N/A N/A N/A paginator page 3 object_list N/A N/A N/A self assertEqual 3 N/A len object_list N/A N/A DefaultPaginatorTest N/A PaginatorTestMixin TestCase N/A N/A paginator_class N/A paginators DefaultPaginator test_indexes N/A N/A self N/A N/A N/A page N/A N/A N/A self paginator page 2 N/A N/A N/A self assertEqual N/A N/A self per_page 1 N/A N/A page start_index N/A N/A N/A self assertEqual N/A N/A self per_page 2 N/A N/A page end_index N/A test_items_count N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A len N/A self items N/A N/A self paginator count N/A test_num_pages N/A N/A self N/A N/A N/A N/A N/A self assertEqual 4 N/A N/A self paginator num_pages N/A test_page_range N/A N/A self N/A N/A N/A N/A N/A self assertSequenceEqual N/A 1 2 3 4 N/A N/A self paginator page_range N/A test_no_items N/A N/A self N/A N/A N/A paginator N/A N/A self paginator_class N/A 10 N/A page N/A N/A paginator page 1 N/A N/A N/A self assertEqual 0 N/A paginator count N/A N/A N/A self assertEqual 0 N/A N/A page start_index N/A test_single_page_indexes N/A N/A self N/A N/A N/A paginator N/A N/A self paginator_class N/A range 6 5 orphans 2 N/A page N/A N/A paginator page 1 N/A N/A N/A self assertEqual 1 N/A N/A page start_index N/A N/A N/A self assertEqual 6 N/A N/A page end_index N/A N/A LazyPaginatorTest N/A PaginatorTestMixin TestCase N/A N/A paginator_class N/A paginators LazyPaginator test_items_count N/A N/A self N/A N/A N/A N/A N/A self assertRaises NotImplementedError N/A N/A N/A N/A self paginator count N/A test_num_pages N/A N/A self N/A N/A N/A N/A N/A N/A self paginator page 2 N/A N/A N/A self assertEqual 3 N/A N/A self paginator num_pages N/A test_page_range N/A N/A self N/A N/A N/A N/A N/A self assertRaises NotImplementedError N/A N/A N/A N/A self paginator page_range N/A N/A DifferentFirstPageDefaultPaginatorTest N/A DifferentFirstPagePaginatorTestMixin TestCase N/A N/A paginator_class N/A paginators DefaultPaginator N/A DifferentFirstPageLazyPaginatorTest N/A DifferentFirstPagePaginatorTestMixin TestCase N/A N/A paginator_class N/A paginators LazyPaginator N/A