'Verify that unpaginated data can be retrieved.'

def test_get_unpaginated_data(self):

    catalog_integration = self.create_catalog_integration()
    api = create_catalog_api_client(self.user)
    expected_collection = ['some', 'test', 'data']
    data = {'next': None, 'results': expected_collection}
    self._mock_catalog_api([httpretty.Response(body=json.dumps(data), content_type='application/json')])
    with mock.patch('openedx.core.lib.edx_api_utils.EdxRestApiClient.__init__') as mock_init:
        actual_collection = get_edx_api_data(catalog_integration, 'programs', api=api)
        self.assertFalse(mock_init.called)
        self.assertEqual(actual_collection, expected_collection)
    self._assert_num_requests(1)
