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