本文整理匯總了Python中helperKolabWAP.KolabWAPTestHelpers.create_domain方法的典型用法代碼示例。如果您正苦於以下問題:Python KolabWAPTestHelpers.create_domain方法的具體用法?Python KolabWAPTestHelpers.create_domain怎麽用?Python KolabWAPTestHelpers.create_domain使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類helperKolabWAP.KolabWAPTestHelpers
的用法示例。
在下文中一共展示了KolabWAPTestHelpers.create_domain方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_modified_foldername_in_new_domain
# 需要導入模塊: from helperKolabWAP import KolabWAPTestHelpers [as 別名]
# 或者: from helperKolabWAP.KolabWAPTestHelpers import create_domain [as 別名]
def test_modified_foldername_in_new_domain(self):
kolabWAPhelper = KolabWAPTestHelpers(self.driver)
self.kolabWAPhelper = kolabWAPhelper
# login
kolabWAPhelper.login_kolab_wap("http://localhost/kolab-webadmin", "cn=Directory Manager", "test")
domainname = kolabWAPhelper.create_domain()
#modify the default folders in /etc/kolab/kolab.conf
newContactsFolderName = self.helper_modify_autocreate_folders()
username, emailLogin, password = kolabWAPhelper.create_user()
kolabWAPhelper.logout_kolab_wap()
# check if mailbox has been created, with the modified folder name
p = subprocess.Popen("kolab lm | grep " + username + " | grep " + newContactsFolderName, shell=True, stdout=subprocess.PIPE)
out, err = p.communicate()
if newContactsFolderName not in out:
self.assertTrue(False, "kolab lm cannot find mailbox with folder " + newContactsFolderName + " for new user " + username)