'Verify that API data retrieval utility is used correctly.'

def assert_contract(self, call_args):

    (args, kwargs) = call_args
    for arg in (self.catalog_integration, 'course_runs'):
        self.assertIn(arg, args)
    self.assertEqual(kwargs['api']._store['base_url'], self.catalog_integration.get_internal_api_url())
    querystring = {'page_size': 20, 'exclude_utm': 1}
    self.assertEqual(kwargs['querystring'], querystring)
    return (args, kwargs)
