summaryrefslogtreecommitdiffstats
path: root/tests/unit/benchmark/scenarios/lib
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2018-01-26 21:12:53 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-01-26 21:12:53 +0000
commitd2f89835fa08f88f0100dae2996c49302ee25614 (patch)
tree140bb122328c6ee677713334c8a35e0e27b033eb /tests/unit/benchmark/scenarios/lib
parente6b6f6fca60322f57329d1c93a01c88c3c81b62c (diff)
parent4546d70b7532291150e9a5237f93dbe090bf99ff (diff)
Merge "Replace assertEqual(x, True|False) with assert[True|False](x)"
Diffstat (limited to 'tests/unit/benchmark/scenarios/lib')
-rw-r--r--tests/unit/benchmark/scenarios/lib/test_check_numa_info.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/benchmark/scenarios/lib/test_check_numa_info.py b/tests/unit/benchmark/scenarios/lib/test_check_numa_info.py
index 45fbae45b..1dd461d41 100644
--- a/tests/unit/benchmark/scenarios/lib/test_check_numa_info.py
+++ b/tests/unit/benchmark/scenarios/lib/test_check_numa_info.py
@@ -38,7 +38,7 @@ class CheckNumaInfoTestCase(unittest.TestCase):
scenario_cfg = {'info1': info1, 'info2': info2}
obj = CheckNumaInfo(scenario_cfg, {})
status = obj._check_vm2_status(info1, info2)
- self.assertEqual(status, True)
+ self.assertTrue(status)
def test_check_vm2_status_length_gt_1(self):
info1 = {
@@ -56,7 +56,7 @@ class CheckNumaInfoTestCase(unittest.TestCase):
scenario_cfg = {'info1': info1, 'info2': info2}
obj = CheckNumaInfo(scenario_cfg, {})
status = obj._check_vm2_status(info1, info2)
- self.assertEqual(status, False)
+ self.assertFalse(status)
def test_check_vm2_status_length_not_in_set(self):
info1 = {
@@ -74,7 +74,7 @@ class CheckNumaInfoTestCase(unittest.TestCase):
scenario_cfg = {'info1': info1, 'info2': info2}
obj = CheckNumaInfo(scenario_cfg, {})
status = obj._check_vm2_status(info1, info2)
- self.assertEqual(status, False)
+ self.assertFalse(status)
def main():