def test_addTestSettingValuesNewSectionTest(self): new_value_map = {"BROWSER1": "CHROME1", "DBString2": "Dbstring2222"} config = Config() config.add_test_setting_values(new_value_map, "NewSection", False) test_section = config.get_section("NewSection") self.assertEquals(test_section.get("BROWSER1"), "CHROME1") self.assertEquals(test_section.get("DBString2"), "Dbstring2222")
def test_getSectionWithConfigSecEnumTest(self): config = Config() test_section = config.get_section(str(ConfigSection.SeleniumMaqs.value)) self.assertEquals(test_section.get("TestKey"), "testValueTwo") self.assertEquals(test_section.get("Browser"), "Internet Explorer")