Merge "Modify use of assertTrue(A in B)"

This commit is contained in:
Jenkins 2016-09-20 22:17:04 +00:00 committed by Gerrit Code Review
commit d331013138

View File

@ -501,7 +501,7 @@ class TestConfigChecks(TestConfigCheckBase):
with self.assertRaises(SystemExit) as context:
get_inventory()
expectedLog = "provider networks can't be found under global_overrides"
self.assertTrue(expectedLog in context.exception.message)
self.assertIn(expectedLog, context.exception.message)
def test_global_overrides_check(self):
# create config file without global_overrides