示例#1
0
    def test_conflict(self):
        confA = Config()
        confA.readConfigFile(self.configA.name)

        confB = Config()
        confB.readConfigFile(self.configB.name)

        self.assertTrue(confA.conflict(confB))
    def test_conflict(self):
        confA = Config()
        confA.readConfigFile(self.configA.name)

        confB = Config()
        confB.readConfigFile(self.configB.name)

        self.assertTrue(confA.conflict(confB))
示例#3
0
    def test_getConflicts(self):
        confA = Config()
        confA.readConfigFile(self.configA.name)

        confB = Config()
        confB.readConfigFile(self.configB.name)

        conflicts = confA.getConflicts(confB)
        self.assertIn("CONFIG_B",conflicts)
        self.assertIn("CONFIG_C",conflicts)
        self.assertIn("CONFIG_M",conflicts)
    def test_getConflicts(self):
        confA = Config()
        confA.readConfigFile(self.configA.name)

        confB = Config()
        confB.readConfigFile(self.configB.name)

        conflicts = confA.getConflicts(confB)
        self.assertIn("CONFIG_B", conflicts)
        self.assertIn("CONFIG_C", conflicts)
        self.assertIn("CONFIG_M", conflicts)
示例#5
0
 def test_valueOf(self):
     confA = Config()
     confA.readConfigFile(self.configA.name)
     self.assertEqual(confA.valueOf("CONFIG_A"),"y")
 def test_valueOf(self):
     confA = Config()
     confA.readConfigFile(self.configA.name)
     self.assertEqual(confA.valueOf("CONFIG_A"), "y")