本文整理匯總了Python中TestCifsUtils類的典型用法代碼示例。如果您正苦於以下問題:Python TestCifsUtils類的具體用法?Python TestCifsUtils怎麽用?Python TestCifsUtils使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了TestCifsUtils類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: cifsDeleteFile
def cifsDeleteFile(self,fileName):
deleteMessage = TestCifsUtils.do_cifsDeleteFile(fileName)
return deleteMessage
示例2: cifsReadFile
def cifsReadFile(self, fileName ):
readFileContent = TestCifsUtils.do_cifsReadFile(fileName)
return readFileContent
示例3: cifsUpdateFile
def cifsUpdateFile(self,fileName, updateFileContent):
TestCifsUtils.do_cifsUpdateFile(fileName, updateFileContent)
return updateFileContent
示例4: cifsCreateFile
def cifsCreateFile(self, fileName, createFileContent):
TestCifsUtils.do_cifsCreateFile(fileName, createFileContent)
return createFileContent
示例5: cifsUnmount
def cifsUnmount(self):
TestCifsUtils.do_cifsUnmount()
return
示例6: cifsMountAs
def cifsMountAs(self, userName, userPass):
status= TestCifsUtils.do_cifsMount('common/', userName, userPass)
if status != 8192:
self.assertEqual(status, 0, 'CIFS Mount failure')
return status
示例7: cifsMountAs
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
示例8: cifsMountAs
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