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

[common][testutils] Fix key search dictionaries

parent c9409382
No related branches found
No related tags found
2 merge requests!2551.4.x,!242Py3 compatibility
......@@ -55,19 +55,19 @@ class BaseTestCase(TestCase):
def checkObjectDBSharingPreferences(self, contribution, reference):
if not(reference.has_key('status')):
if 'status' not in reference:
reference['status'] = 'private'
if not(reference.has_key('shared_with')):
if 'shared_with' not in reference:
reference['shared_with'] = []
if not(reference.has_key('shared_with_team')):
if 'shared_with_team' not in reference:
reference['shared_with_team'] = []
if not(reference.has_key('usable_by')):
if 'usable_by' not in reference:
reference['usable_by'] = []
if not(reference.has_key('usable_by_team')):
if 'usable_by_team' not in reference:
reference['usable_by_team'] = []
if reference['status'] == 'public':
......
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