def testDirectoryNoCreation(self):
        """do not create new directory if it doesn't exist, fail out instead"""
        reload(config)
        with mock.patch('sys.argv', ['buttplug', '--config_dir', self.tmpdir % "abc", "--config_no_create_dir"]):
            try:
                config.init()
                self.fail("Not throwing exception on missing configuration directories!")
            except RuntimeError:
                pass
dataset/ETHPy150Open metafetish/buttplug/tests/test.py/ConfigTests.testDirectoryNoCreation/operator `+` -> `%`