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

Change-Id: I9cffdfa3756d8d6cbe12aa5e56dc66c7ec1f7555
This commit is contained in:
Anh Tran
2016-10-03 09:54:28 +07:00
parent edf99d85d7
commit f1303495df

View File

@@ -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,))