def testDefaults(self): """Test that C++ Control object defaults are correctly used as defaults for Config objects.""" config = testLib.ConfigObject() control = testLib.ControlObject() self.assertTrue( testLib.checkControl(control, config.foo, config.bar.list()))
def testReadControl(self): """Test reading the values from a C++ Control object into a Config object.""" control = testLib.ControlObject() control.foo = 3 control.bar = ["zot", "yox"] config = testLib.ConfigObject() config.readControl(control) self.assertTrue(testLib.checkControl(control, config.foo, config.bar.list()))