Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Remove a file section.

src/d/p/dpm-0.10/dpm/tests/test_lib.py   dpm(Download)
        assert lib.get_config("test:section") == ["test.option"]
        #clean up
        dpm.CONFIG.remove_section("test:section")
        dpm.CONFIG.write(open(dpm.config.default_config_path,'w'))
 
        assert new_value == ""
        #clean up
        dpm.CONFIG.remove_section("test:section")
        dpm.CONFIG.write(open(dpm.config.default_config_path,'w'))
 

src/d/p/dpm-old-HEAD/dpm/tests/test_lib.py   dpm-old(Download)
        assert lib.get_config("test:section") == ["test.option"]
        #clean up
        dpm.CONFIG.remove_section("test:section")
        dpm.CONFIG.write(open(dpm.config.default_config_path,'w'))
 
        assert new_value == ""
        #clean up
        dpm.CONFIG.remove_section("test:section")
        dpm.CONFIG.write(open(dpm.config.default_config_path,'w'))