Merge "Replace assertTrue(a in b) with assertIn(a, b)"

This commit is contained in:
Jenkins 2016-10-04 16:26:21 +00:00 committed by Gerrit Code Review
commit d6aa19ca56
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ class UtilsTest(testtools.TestCase):
hook_type = "hook_type"
mixin = utils.HookableMixin()
mixin.add_hook(hook_type, self.func)
self.assertTrue(hook_type in mixin._hooks_map)
self.assertTrue(self.func in mixin._hooks_map[hook_type])
self.assertIn(hook_type, mixin._hooks_map)
self.assertIn(self.func, mixin._hooks_map[hook_type])
def test_run_hookable_mixin(self):
hook_type = "hook_type"