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_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)
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")