本文整理汇总了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)