Replace assertTrue(a in b) with assertIn(a, b)
Change-Id: I9cffdfa3756d8d6cbe12aa5e56dc66c7ec1f7555
This commit is contained in:
@@ -73,7 +73,7 @@ class TestCommandLineArgument(utils.TestCase):
|
||||
def _test_arg_success(self, command, keyword=None):
|
||||
stdout, stderr = self.shell(command)
|
||||
if keyword:
|
||||
self.assertTrue(keyword in (stdout + stderr))
|
||||
self.assertIn(keyword, (stdout + stderr))
|
||||
|
||||
def _test_arg_failure(self, command, error_msg):
|
||||
stdout, stderr = self.shell(command, (2,))
|
||||
|
||||
Reference in New Issue
Block a user