diff options
author | Emma Foley <emma.l.foley@intel.com> | 2017-12-19 15:15:37 +0000 |
---|---|---|
committer | Emma Foley <emma.l.foley@intel.com> | 2018-01-25 20:30:53 +0000 |
commit | 4546d70b7532291150e9a5237f93dbe090bf99ff (patch) | |
tree | faf4628d935721e58603d7e9cfdf5184d1693350 /tests/unit/benchmark/scenarios/networking/test_vsperf.py | |
parent | 44ee5e004f3af5dcdbbc1d172faba91b8419b6d6 (diff) |
Replace assertEqual(x, True|False) with assert[True|False](x)
Change-Id: Id19df79b4d27aab1a83d8350ce6395e87c13472b
JIRA: YARDSTICK-903
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
Diffstat (limited to 'tests/unit/benchmark/scenarios/networking/test_vsperf.py')
-rw-r--r-- | tests/unit/benchmark/scenarios/networking/test_vsperf.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/benchmark/scenarios/networking/test_vsperf.py b/tests/unit/benchmark/scenarios/networking/test_vsperf.py index cbbfc2b34..be8ac55d0 100644 --- a/tests/unit/benchmark/scenarios/networking/test_vsperf.py +++ b/tests/unit/benchmark/scenarios/networking/test_vsperf.py @@ -66,7 +66,7 @@ class VsperfTestCase(unittest.TestCase): p.setup() self.assertIsNotNone(p.client) - self.assertEqual(p.setup_done, True) + self.assertTrue(p.setup_done) def test_vsperf_teardown(self, mock_ssh, mock_subprocess): p = vsperf.Vsperf(self.args, self.ctx) @@ -77,10 +77,10 @@ class VsperfTestCase(unittest.TestCase): p.setup() self.assertIsNotNone(p.client) - self.assertEqual(p.setup_done, True) + self.assertTrue(p.setup_done) p.teardown() - self.assertEqual(p.setup_done, False) + self.assertFalse(p.setup_done) def test_vsperf_run_ok(self, mock_ssh, mock_subprocess): p = vsperf.Vsperf(self.args, self.ctx) |