Commit 4d6beafa authored by Klaus Aehlig's avatar Klaus Aehlig

Avoid assertIn

...as we still support python versions older than the introduction
of assertIn.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
parent 11535376
...@@ -975,9 +975,9 @@ class TestOSEnvironment(unittest.TestCase): ...@@ -975,9 +975,9 @@ class TestOSEnvironment(unittest.TestCase):
def testParamPresence(self): def testParamPresence(self):
env = self._CreateEnv() env = self._CreateEnv()
env_keys = env.keys() env_keys = env.keys()
self.assertIn("OSP_PUBLIC_PARAM", env) self.assertTrue("OSP_PUBLIC_PARAM" in env)
self.assertIn("OSP_PRIVATE_PARAM", env) self.assertTrue("OSP_PRIVATE_PARAM" in env)
self.assertIn("OSP_ANOTHER_PRIVATE_PARAM", env) self.assertTrue("OSP_ANOTHER_PRIVATE_PARAM" in env)
self.assertEqual("public_info", env["OSP_PUBLIC_PARAM"]) self.assertEqual("public_info", env["OSP_PUBLIC_PARAM"])
self.assertEqual("private_info", env["OSP_PRIVATE_PARAM"]) self.assertEqual("private_info", env["OSP_PRIVATE_PARAM"])
self.assertEqual("more_privacy", env["OSP_ANOTHER_PRIVATE_PARAM"]) self.assertEqual("more_privacy", env["OSP_ANOTHER_PRIVATE_PARAM"])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment