summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>2018-07-03 16:32:09 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-07-03 16:32:09 +0000
commit1f1aed7a38925abff83d655209a9b926b2244ea7 (patch)
tree58c3d19761733f977ba925b6c035dc5f8784d250
parent643d46af0b97d18332ed2a87ec17313a4c2f8cb3 (diff)
parent0c997fce84d917171c5bab2ed39d7856e58b9a5a (diff)
Merge "Cleanup NodeContextTestCase unit tests"
-rw-r--r--yardstick/tests/unit/benchmark/contexts/test_node.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yardstick/tests/unit/benchmark/contexts/test_node.py b/yardstick/tests/unit/benchmark/contexts/test_node.py
index 5d7b24c3d..7fd13a406 100644
--- a/yardstick/tests/unit/benchmark/contexts/test_node.py
+++ b/yardstick/tests/unit/benchmark/contexts/test_node.py
@@ -170,7 +170,7 @@ class NodeContextTestCase(unittest.TestCase):
def test__get_physical_nodes(self):
self.test_context.init(self.attrs)
nodes = self.test_context._get_physical_nodes()
- self.assertEquals(nodes, self.test_context.nodes)
+ self.assertEqual(nodes, self.test_context.nodes)
def test__get_physical_node_for_server(self):
self.test_context.init(self.attrs)
@@ -198,7 +198,7 @@ class NodeContextTestCase(unittest.TestCase):
node_collectd_options = [node for node in self.test_context.nodes
if node['name'] == 'node1'][0]['collectd']
- self.assertEquals(node_collectd_options, options)
+ self.assertEqual(node_collectd_options, options)
@mock.patch('{}.NodeContext._dispatch_script'.format(PREFIX))
def test_deploy(self, dispatch_script_mock):