summaryrefslogtreecommitdiffstats
path: root/tests/functional/test_kolabd
diff options
context:
space:
mode:
authorChristoph Erhardt <kolab@sicherha.de>2021-06-04 16:50:46 +0200
committerChristoph Erhardt <kolab@sicherha.de>2022-01-10 20:42:16 +0100
commitd0579b7e5da331576b80b9d35eb62994075bc939 (patch)
treee925558aabd8a69217e828c46eb4111d16f00fd4 /tests/functional/test_kolabd
parent7750671314e6da19f65aaa95bb1095963fdc175a (diff)
downloadpykolab-d0579b7e5da331576b80b9d35eb62994075bc939.tar.gz
[Python 3] Use print() as function instead of statement
Summary: print() has been a function since Python 2.6; the old behaviour was dropped in Python 3.0. To use the named file argument in Python 2, we need to import print_function from the __future__ module. Reviewers: machniak, mollekopf Reviewed By: mollekopf Differential Revision: https://git.kolab.org/D3229
Diffstat (limited to 'tests/functional/test_kolabd')
-rw-r--r--tests/functional/test_kolabd/test_001_user_sync.py2
-rw-r--r--tests/functional/test_kolabd/test_002_user_rename.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/functional/test_kolabd/test_001_user_sync.py b/tests/functional/test_kolabd/test_001_user_sync.py
index e8c804d..8b61893 100644
--- a/tests/functional/test_kolabd/test_001_user_sync.py
+++ b/tests/functional/test_kolabd/test_001_user_sync.py
@@ -104,7 +104,7 @@ class TestKolabDaemon(unittest.TestCase):
for folder in folders:
metadata = imap.get_metadata(folder)
- print metadata
+ print(metadata)
folder_name = '/'.join(folder.split('/')[2:]).split('@')[0]
if folder_name in ac_folders:
diff --git a/tests/functional/test_kolabd/test_002_user_rename.py b/tests/functional/test_kolabd/test_002_user_rename.py
index 3ac4a02..aaea7e2 100644
--- a/tests/functional/test_kolabd/test_002_user_rename.py
+++ b/tests/functional/test_kolabd/test_002_user_rename.py
@@ -61,7 +61,7 @@ class TestKolabDaemon(unittest.TestCase):
time.sleep(2)
- print imap.lm()
+ print(imap.lm())
user_info = wap_client.user_info('uid=sixpack,ou=People,dc=example,dc=org')
if not user_info['mail'] == 'joe.sixpack@example.org':
@@ -71,7 +71,7 @@ class TestKolabDaemon(unittest.TestCase):
self.assertEqual(user_info['mail'], 'joe.sixpack@example.org')
- print imap.lm()
+ print(imap.lm())
folders = imap.lm('user/john.doe@example.org')
self.assertEqual(len(folders), 0, "INBOX for john.doe still exists")