From a0870528e2eb329c625f4a73493d66c5d8b47735 Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Thu, 26 Apr 2018 15:12:32 +0200 Subject: [PATCH] [common][testutils] Fix key search dictionaries --- beat/web/common/testutils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/beat/web/common/testutils.py b/beat/web/common/testutils.py index c44f68a4c..22f9599ee 100644 --- a/beat/web/common/testutils.py +++ b/beat/web/common/testutils.py @@ -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': -- GitLab