'Verify that a specific resource can be retrieved, and pagination parsing is
not attempted, if the ID passed is falsey (e.g., 0). The expected resource contains
a "results" key, as a paginatable item would have, so if the function looks for falsey
values in the resource_id field, rather than specifically None, the function will
return the value of that "results" key.'

@waffle.testutils.override_switch('populate-multitenant-programs', True)
def test_get_specific_resource_with_falsey_id(self):

    catalog_integration = self.create_catalog_integration()
    api = create_catalog_api_client(self.user)
    resource_id = 0
    url = '{api_root}/programs/{resource_id}/'.format(api_root=CatalogIntegration.current().get_internal_api_url().strip('/'), resource_id=resource_id)
    expected_resource = {'key': 'value', 'results': []}
    self._mock_catalog_api([httpretty.Response(body=json.dumps(expected_resource), content_type='application/json')], url=url)
    actual_resource = get_edx_api_data(catalog_integration, 'programs', api=api, resource_id=resource_id)
    self.assertEqual(actual_resource, expected_resource)
    self._assert_num_requests(1)
