

def test_advanced_search_past_first_page(self):
    (model_list, result_set, elapsed_time) = document_search.search({
        'label': 'test document',
    }, user=self.admin_user)
    elapsed_time.assertEqual(len(result_set), self.document_count)
    with self.settings(COMMON_PAGINATE_BY=2):
        response = self.client.get(reverse('search:results'), {
            'label': 'test',
        })
        self.assertContains(response, 'Total (1 - 2 out of 4) (Page 1 of 2)', status_code=200)
        response = self.client.get(reverse('search:results'), {
            'label': 'test',
            'page': 2,
        })
        self.assertContains(response, 'Total (3 - 4 out of 4) (Page 2 of 2)', status_code=200)

dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/dynamic_search/tests/test_views.py Issue46TestCase.test_advanced_search_past_first_page/VarMisuse@38/61 `self`->`elapsed_time`