Guest User

Untitled

a guest
Jul 22nd, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1.  
  2. @tests.skip_if_cache_disabled('catalog')
  3. def test_cache_layer_region_crud(self):
  4. # create
  5. region_id = uuid.uuid4().hex
  6. new_region = {
  7. 'id': region_id,
  8. 'description': uuid.uuid4().hex,
  9. }
  10. res = self.catalog_api.create_region(new_region.copy())
  11. updated_region = copy.deepcopy(new_region)
  12. updated_region['description'] = uuid.uuid4().hex
  13. #import pdb; pdb.set_trace()
  14. self.catalog_api.driver.delete_region(region_id)
  15. self.assertDictContainsSubset(new_region, self.catalog_api.get_region(region_id))
Advertisement
Add Comment
Please, Sign In to add comment