Example #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))
Example #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))
Example #3
0
 def test_contains(self):
     c = Configuration()
     self.assertFalse(c.contains(self.fullparam))
Example #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))
Example #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))
Example #6
0
 def test_contains(self):
     c = Configuration()
     self.assertFalse(c.contains(self.fullparam))