def testSetTwoConfigItems(self): s = [ IntegerValue(BASE_GROUP, 'testTwoA'), StringValue(BASE_GROUP, 'testTwoB') ] config_register_list(*s) self.assert_(config_exists(BASE_GROUP, 'testTwoA')) self.assert_(config_exists(BASE_GROUP, 'testTwoB'))
def testSetGroup(self): g1 = ConfigurationGroup('test1', 'test1') value = IntegerValue(g1, 'SingleGroupedItem') config_register(value) self.assertFalse(config_exists(BASE_GROUP, 'SingleGroupedItem')) self.assert_(config_exists(g1, 'SingleGroupedItem'))
def testSetSingleConfigItem(self): value = IntegerValue(BASE_GROUP, 'SingleItem') config_register(value) self.assert_(config_exists(BASE_GROUP, 'SingleItem'))
def testSetGroup(self): g1 = ConfigurationGroup('test1', 'test1') value = IntegerValue(g1, 'SingleGroupedItem') config_register(value) self.assertFalse(config_exists(BASE_GROUP, 'SingleGroupedItem')) self.assertTrue(config_exists(g1, 'SingleGroupedItem'))
def testSetTwoConfigItems(self): s = [IntegerValue(BASE_GROUP, 'testTwoA'), StringValue(BASE_GROUP, 'testTwoB')] config_register_list(*s) self.assertTrue(config_exists(BASE_GROUP, 'testTwoA')) self.assertTrue(config_exists(BASE_GROUP, 'testTwoB'))
def testSetSingleConfigItem(self): value = IntegerValue(BASE_GROUP, 'SingleItem') config_register(value) self.assertTrue(config_exists(BASE_GROUP, 'SingleItem'))