本文整理匯總了Python中TestCifsUtils.do_cifsMount方法的典型用法代碼示例。如果您正苦於以下問題:Python TestCifsUtils.do_cifsMount方法的具體用法?Python TestCifsUtils.do_cifsMount怎麽用?Python TestCifsUtils.do_cifsMount使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TestCifsUtils
的用法示例。
在下文中一共展示了TestCifsUtils.do_cifsMount方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: cifsMountAs
# 需要導入模塊: import TestCifsUtils [as 別名]
# 或者: from TestCifsUtils import do_cifsMount [as 別名]
def cifsMountAs(self, userArea, userName, userPass):
status = TestCifsUtils.do_cifsMount("shared/" + userArea, userName, userPass)
if status != 8192:
self.assertEqual(status, 0, "CIFS Mount failure")
return status
示例2: cifsMountAs
# 需要導入模塊: import TestCifsUtils [as 別名]
# 或者: from TestCifsUtils import do_cifsMount [as 別名]
def cifsMountAs(self, userName, userPass):
status= TestCifsUtils.do_cifsMount('common/', userName, userPass)
if status != 8192:
self.assertEqual(status, 0, 'CIFS Mount failure')
return status
示例3: cifsMountAs
# 需要導入模塊: import TestCifsUtils [as 別名]
# 或者: from TestCifsUtils import do_cifsMount [as 別名]
def cifsMountAs(self, access, userArea, userName, userPass):
status = TestCifsUtils.do_cifsMount(access + "/" + userArea, userName, userPass)
if status != 32 * 256: # 32 is exit status for mount failure: just return status
self.assertEqual(status, 0, "CIFS Mount failure")
return status