當前位置: 首頁>>代碼示例>>Python>>正文


Python TestCifsUtils類代碼示例

本文整理匯總了Python中TestCifsUtils的典型用法代碼示例。如果您正苦於以下問題:Python TestCifsUtils類的具體用法?Python TestCifsUtils怎麽用?Python TestCifsUtils使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了TestCifsUtils類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: cifsDeleteFile

 def cifsDeleteFile(self,fileName):
     deleteMessage = TestCifsUtils.do_cifsDeleteFile(fileName)
     return  deleteMessage
開發者ID:bhavanaananda,項目名稱:DataStage,代碼行數:3,代碼來源:TestFileCommonArea.py

示例2: cifsReadFile

 def cifsReadFile(self, fileName ):
     readFileContent = TestCifsUtils.do_cifsReadFile(fileName)
     return  readFileContent
開發者ID:bhavanaananda,項目名稱:DataStage,代碼行數:3,代碼來源:TestFileCommonArea.py

示例3: cifsUpdateFile

 def cifsUpdateFile(self,fileName, updateFileContent):
     TestCifsUtils.do_cifsUpdateFile(fileName, updateFileContent)
     return updateFileContent
開發者ID:bhavanaananda,項目名稱:DataStage,代碼行數:3,代碼來源:TestFileCommonArea.py

示例4: cifsCreateFile

 def cifsCreateFile(self, fileName, createFileContent):
     TestCifsUtils.do_cifsCreateFile(fileName, createFileContent)
     return createFileContent
開發者ID:bhavanaananda,項目名稱:DataStage,代碼行數:3,代碼來源:TestFileCommonArea.py

示例5: cifsUnmount

 def cifsUnmount(self):
     TestCifsUtils.do_cifsUnmount()
     return
開發者ID:bhavanaananda,項目名稱:DataStage,代碼行數:3,代碼來源:TestFileCommonArea.py

示例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
開發者ID:bhavanaananda,項目名稱:DataStage,代碼行數:5,代碼來源:TestFileCommonArea.py

示例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
開發者ID:no-reply,項目名稱:DataStage,代碼行數:5,代碼來源:TestFileSharedArea.py

示例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
開發者ID:bhavanaananda,項目名稱:DataStage,代碼行數:5,代碼來源:TestDeletedUserCheckFileAccess.py


注:本文中的TestCifsUtils類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。