@classmethod<EOL><INDENT>def _get_config(cls, all_linters=None, user_cfg=None, default_cfg=None):<DEDENT>
all_linters = all_linters or {}<EOL>user_cfg = user_cfg or {}<EOL>default_cfg = default_cfg or {}<EOL>default = cls._get_config_parser({'<STR_LIT>': default_cfg})<EOL>user = cls._get_config_parser({'<STR_LIT>': user_cfg})<EOL>with patch('<STR_LIT>', side_effect=(default, user)):<EOL><INDENT>return Config(all_linters)<EOL><DEDENT>
Return real config with mocked ConfigParser.