Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @tests.skip_if_cache_disabled('catalog')
- def test_cache_layer_region_crud(self):
- # create
- region_id = uuid.uuid4().hex
- new_region = {
- 'id': region_id,
- 'description': uuid.uuid4().hex,
- }
- res = self.catalog_api.create_region(new_region.copy())
- updated_region = copy.deepcopy(new_region)
- updated_region['description'] = uuid.uuid4().hex
- #import pdb; pdb.set_trace()
- self.catalog_api.driver.delete_region(region_id)
- self.assertDictContainsSubset(new_region, self.catalog_api.get_region(region_id))
Advertisement
Add Comment
Please, Sign In to add comment