Merge "Remove unnecessary assertIn"

This commit is contained in:
Jenkins 2017-09-28 02:45:47 +00:00 committed by Gerrit Code Review
commit 2c6a6f0cf0

View File

@ -271,10 +271,8 @@ class ScenarioTest(tempest.test.BaseTestCase):
if backend_name:
extra_specs = {"volume_backend_name": backend_name}
body = client.create_volume_type(name=randomized_name,
extra_specs=extra_specs)
volume_type = body['volume_type']
self.assertIn('id', volume_type)
volume_type = client.create_volume_type(
name=randomized_name, extra_specs=extra_specs)['volume_type']
self.addCleanup(client.delete_volume_type, volume_type['id'])
return volume_type