Changeset View
Changeset View
Standalone View
Standalone View
tests/functional/test_kolabd/test_001_user_sync.py
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | def test_005_user_folders_metadata_set(self): | ||||
exec("ac_folders = %s" % (ac_folders)) | exec("ac_folders = %s" % (ac_folders)) | ||||
folders = [] | folders = [] | ||||
folders.extend(imap.lm('user/%(local)s@%(domain)s' % (self.user))) | folders.extend(imap.lm('user/%(local)s@%(domain)s' % (self.user))) | ||||
folders.extend(imap.lm('user/%(local)s/*@%(domain)s' % (self.user))) | folders.extend(imap.lm('user/%(local)s/*@%(domain)s' % (self.user))) | ||||
for folder in folders: | for folder in folders: | ||||
metadata = imap.get_metadata(folder) | metadata = imap.get_metadata(folder) | ||||
print metadata | print(metadata) | ||||
folder_name = '/'.join(folder.split('/')[2:]).split('@')[0] | folder_name = '/'.join(folder.split('/')[2:]).split('@')[0] | ||||
if folder_name in ac_folders: | if folder_name in ac_folders: | ||||
if 'annotations' in ac_folders[folder_name]: | if 'annotations' in ac_folders[folder_name]: | ||||
for _annotation in ac_folders[folder_name]['annotations'].keys(): | for _annotation in ac_folders[folder_name]['annotations'].keys(): | ||||
if _annotation.startswith('/private'): | if _annotation.startswith('/private'): | ||||
continue | continue | ||||
Show All 25 Lines |