test_copytool_monitor.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:intel-manager-for-lustre 作者: intel-hpdd 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号