Пример #1
0
    def test_rand_uuid_hex(self):
        actual = data_utils.rand_uuid_hex()
        self.assertIsInstance(actual, str)
        self.assertRegexpMatches(actual, "^[0-9a-f]{32}$")

        actual2 = data_utils.rand_uuid_hex()
        self.assertNotEqual(actual, actual2)
Пример #2
0
    def test_rand_uuid_hex(self):
        actual = data_utils.rand_uuid_hex()
        self.assertIsInstance(actual, str)
        self.assertRegexpMatches(actual, "^[0-9a-f]{32}$")

        actual2 = data_utils.rand_uuid_hex()
        self.assertNotEqual(actual, actual2)
Пример #3
0
 def test_delete_member_with_non_existing_tenant(self):
     # Delete member with non existing tenant.
     image_id = self._create_image()
     non_exist_tenant = data_utils.rand_uuid_hex()
     self.assertRaises(lib_exc.NotFound, self.client.delete_member,
                       non_exist_tenant, image_id)
Пример #4
0
 def test_delete_non_existent_project(self):
     # Attempt to delete a non existent project should fail
     self.assertRaises(lib_exc.NotFound, self.client.delete_project,
                       data_utils.rand_uuid_hex())
 def test_delete_member_with_non_existing_tenant(self):
     # Delete member with non existing tenant.
     image_id = self._create_image()
     non_exist_tenant = data_utils.rand_uuid_hex()
     self.assertRaises(lib_exc.NotFound, self.client.delete_member,
                       non_exist_tenant, image_id)