def test_total(self):
        p = self.pager(self.qs(10), 20, 1)
        self.assertEqual(p.total, 10)
Total number of objects is count of queryset.
dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_pagination.py/TestPager.test_total