'Return a mocked idleConf
Both default and user config used the same config-*.def'

def mock_config(self):

    conf = config.IdleConf(_utest=True)
    for ctype in conf.config_types:
        conf.defaultCfg[ctype] = config.IdleConfParser('')
        conf.defaultCfg[ctype].read_string(self.config_string[ctype])
        conf.userCfg[ctype] = config.IdleUserConfParser('')
        conf.userCfg[ctype].read_string(self.config_string[ctype])
    return conf
