Replace 'assertTrue(a not in b)' with 'assertNotIn(a, b)'

trivialfix

Change-Id: I46199c0be3373ae4f3aa56a8eef045bbdb536284
This commit is contained in:
Cao Xuan Hoang 2016-09-28 13:44:53 +07:00
parent 43521275ca
commit 7b46642bdd
1 changed files with 2 additions and 2 deletions

View File

@ -174,8 +174,8 @@ class FibreChannelConnectorTestCase(test_connector.ConnectorTestCase):
exp_wwn)
self.assertEqual(dev_info['type'], 'block')
self.assertEqual(dev_info['path'], dev_str)
self.assertTrue('multipath_id' not in dev_info)
self.assertTrue('devices' not in dev_info)
self.assertNotIn('multipath_id', dev_info)
self.assertNotIn('devices', dev_info)
self.connector.disconnect_volume(connection_info['data'], dev_info)
expected_commands = []