예제 #1
0
    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'))
예제 #2
0
 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'))
예제 #3
0
 def testSetSingleConfigItem(self):
     value = IntegerValue(BASE_GROUP, 'SingleItem')
     config_register(value)
     self.assert_(config_exists(BASE_GROUP, 'SingleItem'))
예제 #4
0
 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'))
예제 #5
0
    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'))
예제 #6
0
 def testSetSingleConfigItem(self):
     value = IntegerValue(BASE_GROUP, 'SingleItem')
     config_register(value)
     self.assertTrue(config_exists(BASE_GROUP, 'SingleItem'))