def _get_object_mock(self):
    cfg = ConfigMock(cfg_file=self.cfg_file)
    return cfg
Returns a mocked instance of ConfigWriter
dataset/ETHPy150Open ganeti/ganeti/test/py/ganeti.config_unittest.py/TestConfigRunner._get_object_mock