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>2012-12-26 15:37:53 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-12-26 15:37:53 +0100
commit7a2de6e118b1b88a34efa87cbd27f398a690c717 (patch)
treea561e044ae6333dffed340dcc32af9bc2f66a0a0 /tests/functional/test_kolabd/test_001_user_sync.py
parent02a5f7f9eb5e62a0e1498e151c6e9dd968aec6fd (diff)
downloadpykolab-7a2de6e118b1b88a34efa87cbd27f398a690c717.tar.gz
Loop through the thread's synchronization routine continuously
Diffstat (limited to 'tests/functional/test_kolabd/test_001_user_sync.py')
-rw-r--r--tests/functional/test_kolabd/test_001_user_sync.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/functional/test_kolabd/test_001_user_sync.py b/tests/functional/test_kolabd/test_001_user_sync.py
index 44858bb..aef47aa 100644
--- a/tests/functional/test_kolabd/test_001_user_sync.py
+++ b/tests/functional/test_kolabd/test_001_user_sync.py
@@ -48,6 +48,8 @@ class TestKolabDaemon(unittest.TestCase):
}
user_add("Jane", "Doe")
+ time.sleep(3)
+
auth = Auth()
auth.connect()
recipient = auth.find_recipient("%(local)s@%(domain)s" % (user))
@@ -58,6 +60,12 @@ class TestKolabDaemon(unittest.TestCase):
result = wap_client.user_info(recipient)
+ if not result.has_key('mailhost'):
+ from tests.functional.synchronize import synchronize_once
+ synchronize_once()
+
+ result = wap_client.user_info(recipient)
+
self.assertEqual(result['mail'], 'jane.doe@example.org')
self.assertEqual(result['alias'], ['doe2@example.org', 'j.doe2@example.org'])