def testStringListOverrideDefault(self):
        class TestCfgFile(ConfigFile):
            bam = CfgList(CfgString, default=['foo'])
        dir = tempfile.mkdtemp()
        try:
            open('%s/foo' % dir, 'w').write('bam foo\nbam bar\n')
            cfg = TestCfgFile()
            cfg.read('%s/foo' % dir)
            assert(cfg.bam == ['foo', 'bar'])
        finally:
            shutil.rmtree(dir)
dataset/ETHPy150Open sassoftware/conary/conary_test/libtest/cfgtest.py/ConfigTest.testStringListOverrideDefault/original