summaryrefslogtreecommitdiffstats
path: root/yardstick
diff options
context:
space:
mode:
authorEmma Foley <emma.l.foley@intel.com>2017-12-19 15:44:11 +0000
committerEmma Foley <emma.l.foley@intel.com>2018-01-12 14:45:53 +0000
commit2f2ee2293ffdf2969d36ad1ac73eb5cc90dd308a (patch)
treefaf606ce577301e84414112949a8f736982e695e /yardstick
parentd579e62b431a31856a03098dc5323948ccfa4fdb (diff)
Use assertIn(x, y) instead of other variations
unittest.assertIn(x,y) should be used instead of: * unittest.assertTrue(x in y) * unittest.assertEqual(x in y, True) Also fixes pep8 violations existing in the file. Change-Id: I705c1bd4af74757b5c928995894aede436d66817 JIRA: YARDSTICK-901 Signed-off-by: Emma Foley <emma.l.foley@intel.com>
Diffstat (limited to 'yardstick')
-rw-r--r--yardstick/tests/unit/apiserver/resources/test_env_action.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/tests/unit/apiserver/resources/test_env_action.py b/yardstick/tests/unit/apiserver/resources/test_env_action.py
index b7bfe294d..cf646a29c 100644
--- a/yardstick/tests/unit/apiserver/resources/test_env_action.py
+++ b/yardstick/tests/unit/apiserver/resources/test_env_action.py
@@ -32,7 +32,7 @@ class EnvTestCase(APITestCase):
time.sleep(0)
- self.assertTrue(u'status' in resp)
+ self.assertIn(u'status', resp)
def main():