Skip to content
Snippets Groups Projects
Commit 8273c4f5 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[dataformats][tests][core] Fix key search in dictionary

parent 184c30f1
No related branches found
No related tags found
2 merge requests!2551.4.x,!242Py3 compatibility
......@@ -260,7 +260,7 @@ class DataFormatSharingAPIBase(DataFormatsAPIBase):
self.assertEqual(len(sharing_preferences.keys()), len(reference.keys()))
for (key, value) in reference.items():
self.assertTrue(sharing_preferences.has_key(key))
self.assertTrue(key in sharing_preferences)
if isinstance(value, list):
self.assertEqual(len(sharing_preferences[key]), len(value))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment