def test_has_option(self): config = AVConfigParser(DEFAULT_SECTION) self.assertFalse(config.has_option("expert", "profile")) self.assertEqual(config.read(TEST_FILES_PATH + "ossim_setup1.conf"), AVConfigParserErrors.ALL_OK) self.assertTrue(config.has_option("expert", "profile")) self.assertTrue(config.has_option("", "admin_dns")) self.assertTrue(config.has_option(DEFAULT_SECTION, "admin_dns")) self.assertFalse(config.has_option("nosectionname", "nosectionoption")) self.assertFalse(config.has_option(DEFAULT_SECTION, "nosectionoption")) del config