summaryrefslogtreecommitdiffstats
path: root/tests/functional/test_kolabd
diff options
context:
space:
mode:
authorChristoph Erhardt <kolab@sicherha.de>2021-06-05 09:59:24 +0200
committerChristoph Erhardt <kolab@sicherha.de>2022-01-10 20:48:40 +0100
commitc3b9d5557161f840a8f2c45fc91ec09299593dd9 (patch)
tree93105906638753c8d040af85226f30ae63963cbf /tests/functional/test_kolabd
parent991255eaa314b51e2dd586460311d4633a56eb86 (diff)
downloadpykolab-c3b9d5557161f840a8f2c45fc91ec09299593dd9.tar.gz
[Python 3] Remove unnecessary occurrences of .keys()
Summary: The following cases are covered: * for key in dict * if key in dict * len(dict) This will make life easier for futurize. Reviewers: machniak, mollekopf Reviewed By: mollekopf Differential Revision: https://git.kolab.org/D3235
Diffstat (limited to 'tests/functional/test_kolabd')
-rw-r--r--tests/functional/test_kolabd/test_001_user_sync.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/test_kolabd/test_001_user_sync.py b/tests/functional/test_kolabd/test_001_user_sync.py
index 8b61893..cf8d443 100644
--- a/tests/functional/test_kolabd/test_001_user_sync.py
+++ b/tests/functional/test_kolabd/test_001_user_sync.py
@@ -89,7 +89,7 @@ class TestKolabDaemon(unittest.TestCase):
folders = imap.lm('user/%(local)s/*@%(domain)s' % (self.user))
- self.assertEqual(len(folders), len(ac_folders.keys()))
+ self.assertEqual(len(folders), len(ac_folders))
def test_005_user_folders_metadata_set(self):
imap = IMAP()
@@ -109,7 +109,7 @@ class TestKolabDaemon(unittest.TestCase):
folder_name = '/'.join(folder.split('/')[2:]).split('@')[0]
if folder_name in ac_folders:
if 'annotations' in ac_folders[folder_name]:
- for _annotation in ac_folders[folder_name]['annotations'].keys():
+ for _annotation in ac_folders[folder_name]['annotations']:
if _annotation.startswith('/private'):
continue