def test_list_with_pagination(self):
        with client.test_mode as t:
            t.register_json('/foo/', {'count': 10, 'results': [
                {'id': 1, 'name': 'bar'},
            ], 'next': '/api/v1/foo/?page=2', 'previous': None})
            result = self.res.list()
            self.assertEqual(result['next'], 2)
Establish that the `list` method returns pages as integers
dataset/ETHPy150Open ansible/tower-cli/tests/test_models_base.py/ResourceTests.test_list_with_pagination