def testDirectoryCreation(self):
        with mock.patch('sys.argv', ['buttplug', '--config_dir', self.tmpdir]):
            config.init()
        self.failIf(not os.path.exists(config._cdirs["config"]))
        self.failIf(not os.path.exists(config._cdirs["plugin"]))
Register field definition class.
dataset/ETHPy150Open metafetish/buttplug/tests/test.py/ConfigTests.testDirectoryCreation--crossover with--dataset/ETHPy150Open kennethreitz/tablib/tablib/packages/dbfpy3/fields.py/registerField