summaryrefslogtreecommitdiffstats
path: root/tests/functional/test_kolabd/test_001_user_sync.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-05-14 14:05:56 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-05-14 14:05:56 +0200
commit4583e353fcb16fb5de8f2e83d11173d1f784b80a (patch)
tree8ae07f0f72ffc78c8e90445d03922d4bab1a6728 /tests/functional/test_kolabd/test_001_user_sync.py
parent58674fa2c72a8a6f230d787db9444d279f951ba5 (diff)
downloadpykolab-4583e353fcb16fb5de8f2e83d11173d1f784b80a.tar.gz
Use 'id' rather than 'user' parameter
Diffstat (limited to 'tests/functional/test_kolabd/test_001_user_sync.py')
-rw-r--r--tests/functional/test_kolabd/test_001_user_sync.py7
1 files changed, 5 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 aef47aa..671188a 100644
--- a/tests/functional/test_kolabd/test_001_user_sync.py
+++ b/tests/functional/test_kolabd/test_001_user_sync.py
@@ -37,6 +37,7 @@ class TestKolabDaemon(unittest.TestCase):
self.assertEqual(recipient, "uid=doe,ou=People,dc=example,dc=org")
result = wap_client.user_info(recipient)
+
self.assertEqual(result['mail'], 'john.doe@example.org')
self.assertEqual(result['alias'], ['doe@example.org', 'j.doe@example.org'])
@@ -82,7 +83,8 @@ class TestKolabDaemon(unittest.TestCase):
imap = IMAP()
imap.connect()
- exec("ac_folders = %s" % (conf.get_raw(conf.get('kolab', 'primary_domain'), 'autocreate_folders')))
+ ac_folders = conf.get_raw('kolab', 'autocreate_folders')
+ exec("ac_folders = %s" % (ac_folders))
folders = imap.lm('user/%(local)s/*@%(domain)s' % (self.user))
@@ -92,7 +94,8 @@ class TestKolabDaemon(unittest.TestCase):
imap = IMAP()
imap.connect()
- exec("ac_folders = %s" % (conf.get_raw(conf.get('kolab', 'primary_domain'), 'autocreate_folders')))
+ ac_folders = conf.get_raw('kolab', 'autocreate_folders')
+ exec("ac_folders = %s" % (ac_folders))
folders = []
folders.extend(imap.lm('user/%(local)s@%(domain)s' % (self.user)))