def setUp(self):
super(CopytoolTestCase, self).setUp()
from chroma_agent.config_store import ConfigStore
self.mock_config = ConfigStore(tempfile.mkdtemp())
patch('chroma_agent.copytool_monitor.config', self.mock_config).start()
self.ct_id = '42'
self.ct_bin_path = '/usr/sbin/lhsmtool_foo'
self.ct_filesystem = 'testfs'
self.ct_mountpoint = '/mnt/testfs'
self.ct_archive = 2
self.ct_index = 0
self.ct = Copytool(self.ct_id, self.ct_index, self.ct_bin_path,
self.ct_archive, self.ct_filesystem,
self.ct_mountpoint, "")
self.addCleanup(patch.stopall)
test_copytool_monitor.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录