示例#1
0
    def test_contains_normal(self):
        c = Configuration()
        c.set(self.fullparam, self.value)

        self.assertTrue(c.contains(self.fullparam))
        self.assertTrue(c.contains(self.fullparam, ignoreDefault=True))
示例#2
0
    def test_contains_default(self):
        c = Configuration()
        c.set_default(self.fullparam, self.default_value)

        self.assertTrue(c.contains(self.fullparam))
        self.assertFalse(c.contains(self.fullparam, ignoreDefault=True))
示例#3
0
 def test_contains(self):
     c = Configuration()
     self.assertFalse(c.contains(self.fullparam))
示例#4
0
    def test_contains_normal(self):
        c = Configuration()
        c.set(self.fullparam, self.value)

        self.assertTrue(c.contains(self.fullparam))
        self.assertTrue(c.contains(self.fullparam, ignoreDefault=True))
示例#5
0
    def test_contains_default(self):
        c = Configuration()
        c.set_default(self.fullparam, self.default_value)

        self.assertTrue(c.contains(self.fullparam))
        self.assertFalse(c.contains(self.fullparam, ignoreDefault=True))
示例#6
0
 def test_contains(self):
     c = Configuration()
     self.assertFalse(c.contains(self.fullparam))