Fix deprecated `assertEquals()`

See https://docs.python.org/2/library/unittest.html#deprecated-aliases
This commit is contained in:
Nicola Soranzo
2019-04-23 12:48:35 +01:00
parent cecf58c161
commit faac99976b
+2 -2
View File
@@ -306,7 +306,7 @@ test_data:
""", history_id=history_id)
content = self.dataset_populator.get_history_dataset_content(history_id)
self.assertEquals(content, "hello world\nhello world 2\n")
self.assertEqual(content, "hello world\nhello world 2\n")
def test_workflow_import_tool(self):
history_id = self.dataset_populator.new_history()
@@ -321,7 +321,7 @@ test_data:
history_id=history_id
)
content = self.dataset_populator.get_history_dataset_content(history_id)
self.assertEquals(content, "hello world\nhello world 2\n")
self.assertEqual(content, "hello world\nhello world 2\n")
def _steps_by_label(self, workflow_as_dict):
by_label = {}