def testInvalidConfigurationFileLoad(self):
        config.set_value("server_address", "ipc://wat")
        # Insert gibberish!
        with open(os.path.join(config._cdirs["config"], config.CONFIG_FILENAME), "w") as f:
            f.write("This is so not some fucking json")
        reload(config)
        with mock.patch('sys.argv', ['buttplug', '--config_dir', self.tmpdir]):
            try:
                config.init()
                self.fail("Didn't fail on gibberish json!")
            except ValueError:
                pass
throw on screwed config files correctly
dataset/ETHPy150Open metafetish/buttplug/tests/test.py/ConfigTests.testInvalidConfigurationFileLoad