def qs(self, count):
        qs = Mock()
        qs.count.return_value = count
        qs.empty.return_value = []
        qs.__getitem__ = Mock()
        return qs
Returns mock queryset with given count.
dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_pagination.py/TestPager.qs