def test_NoWriteCache(self):
cachedir = os.getcwd()+'/sdr/cache/.BasicTestDevice_node'
(status,output) = commands.getstatusoutput('mkdir -p '+cachedir)
(status,output) = commands.getstatusoutput('chmod 000 '+cachedir)
self.assertFalse(os.access(cachedir, os.R_OK|os.W_OK|os.X_OK), 'Current user can still access directory')
devmgr_nb, devMgr = self.launchDeviceManager("/nodes/test_BasicTestDevice_node/DeviceManager.dcd.xml")
self.assertEquals(255, devmgr_nb.returncode)
self.assertEquals(devMgr, None)
test_01_DeviceManager.py 文件源码
python
阅读 34
收藏 0
点赞 0
评论 0
评论列表
文章目录