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: if backend_name:
extra_specs = {"volume_backend_name": backend_name} extra_specs = {"volume_backend_name": backend_name}
body = client.create_volume_type(name=randomized_name, volume_type = client.create_volume_type(
extra_specs=extra_specs) name=randomized_name, extra_specs=extra_specs)['volume_type']
volume_type = body['volume_type']
self.assertIn('id', volume_type)
self.addCleanup(client.delete_volume_type, volume_type['id']) self.addCleanup(client.delete_volume_type, volume_type['id'])
return volume_type return volume_type