summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhowardlee <lihongweibj@inspur.com>2016-10-20 16:13:27 +0800
committerhowardlee <lihongweibj@inspur.com>2016-10-20 16:13:27 +0800
commitccef06cd5bd767b26e53db73a7651ce1e4a01ede (patch)
tree148838bbffe949cb47f1528015957b4939880335
parent16c22e9b1a83c1fa27c1fac071f9c41c5822e019 (diff)
downloadoslo-rootwrap-ccef06cd5bd767b26e53db73a7651ce1e4a01ede.tar.gz
[TrivialFix] Replace 'assertFalse(a in b)' with 'assertNotIn(a, b)'
Change-Id: I11e5f2db80249f5ff8275da97458e9455319ddfe
-rw-r--r--oslo_rootwrap/tests/test_rootwrap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/oslo_rootwrap/tests/test_rootwrap.py b/oslo_rootwrap/tests/test_rootwrap.py
index d023d5f..200c4f0 100644
--- a/oslo_rootwrap/tests/test_rootwrap.py
+++ b/oslo_rootwrap/tests/test_rootwrap.py
@@ -156,7 +156,7 @@ class RootwrapTestCase(testtools.TestCase):
# check that environment variables are set
self.assertEqual('/some/thing', env.get('A'))
self.assertEqual('somethingelse', env.get('B'))
- self.assertFalse('sleep' in env.keys())
+ self.assertNotIn('sleep', env.keys())
def test_EnvFilter_without_leading_env(self):
envset = ['A=/some/thing', 'B=somethingelse']
@@ -175,7 +175,7 @@ class RootwrapTestCase(testtools.TestCase):
# check that environment variables are set
self.assertEqual('/some/thing', env.get('A'))
self.assertEqual('somethingelse', env.get('B'))
- self.assertFalse('sleep' in env.keys())
+ self.assertNotIn('sleep', env.keys())
def test_KillFilter(self):
if not os.path.exists("/proc/%d" % os.getpid()):