def test_design_uri_injection(self): """ Test if design uri can be set via environment variable. """ if 'DESIGN_URI' in os.environ: return os.environ['DESIGN_URI'] = 'http://localhost:35357/v2.0' services.list_services(self.token) services.get_service_endpoint('heat', self.token) os.environ.pop('DESIGN_URI')
def test_service_listing_for_sanity(self): """ Test listing of services for sanity. """ tmp = services.list_services(self.token) self.assertTrue('heat' in tmp.keys())