def test_copyConfig(self): engine = Clam_ConfigurationProxy.createConfigurationProxyWithProc("AudioSource") config = Clam_ConfigurationProxy.createConfigurationProxyWithProc("AudioSource") config["NSources"] = 2 self.assertEqual(1, engine["NSources"]) engine.copyConfig(config) self.assertEqual(2, config["NSources"]) self.assertEqual(2, engine["NSources"])
def test_copyConfig(self): engine = Clam_ConfigurationProxy.createConfigurationProxyWithProc( "AudioSource") config = Clam_ConfigurationProxy.createConfigurationProxyWithProc( "AudioSource") config["NSources"] = 2 self.assertEqual(1, engine["NSources"]) engine.copyConfig(config) self.assertEqual(2, config["NSources"]) self.assertEqual(2, engine["NSources"])
def test_clone(self): engine = Clam_ConfigurationProxy.createConfigurationProxyWithProc( "AudioSource") configClone = engine.clone() configClone["NSources"] = 2 self.assertEqual(1, engine["NSources"]) self.assertEqual(2, configClone["NSources"])
def test_hold_apply(self): c = Clam_ConfigurationProxy.createConfigurationProxyWithProc("AudioSource") c.hold() c["NSources"] = 2 self.assertEqual(1, c["NSources"]) c.apply() self.assertEqual(2, c["NSources"])
def test_hold_apply(self): c = Clam_ConfigurationProxy.createConfigurationProxyWithProc( "AudioSource") c.hold() c["NSources"] = 2 self.assertEqual(1, c["NSources"]) c.apply() self.assertEqual(2, c["NSources"])
def test_nonDefault(self): engine = Clam_ConfigurationProxy.createConfigurationProxyWithProc( "AudioSource") self.assertEqual(False, engine.nonDefault("NSources")) engine["NSources"] = 2 self.assertEqual(True, engine.nonDefault("NSources"))
def test_clone(self): engine = Clam_ConfigurationProxy.createConfigurationProxyWithProc("AudioSource") configClone = engine.clone() configClone["NSources"] = 2 self.assertEqual(1, engine["NSources"]) self.assertEqual(2, configClone["NSources"])
def test_nonDefault(self): engine = Clam_ConfigurationProxy.createConfigurationProxyWithProc("AudioSource") self.assertEqual(False, engine.nonDefault("NSources")) engine["NSources"] = 2 self.assertEqual(True, engine.nonDefault("NSources"))