Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/s/e/semanticizer-HEAD/test/TestConfig.py   semanticizer(Download)
            if value:
                configuration += [str(value)]
        config.set_data(configuration)
        # check we can read back the data we set
        self.assertEqual(config.config_get(("server","port")),
                         "can't find argument values set by set_data")
        # check that the system exits when we give unrecognized arguments
        config.set_data("--some values --that --dont --exist".split())
        self.assertRaises(SystemExit, config._set_conf)
 
            if value:
                configuration += [str(value)]
        config.set_data(configuration)
        # check we can read back the data we set
        config.config_get(('server', 'port'))