def test_remove_section(self): ''' Test remove_section method. ''' self.assertEqual( ini.remove_section(self.tfile.name, 'SectionB'), {'test1': 'value 1B', 'test3': 'value 3B'}) self.assertEqual(ini.get_section(self.tfile.name, 'SectionB'), {})
def test_remove_section(self): """ Test remove_section method. """ self.assertEqual( ini.remove_section(self.tfile.name, "SectionB"), {"test1": "value 1B", "test3": "value 3B"}, ) self.assertEqual(ini.get_section(self.tfile.name, "SectionB"), {})
def test_remove_section(self): self.assertEqual( ini.remove_section(self.tfile.name, 'SectionB'), {'test1': 'value 1B', 'test3': 'value 3B'}) self.assertEqual(ini.get_section(self.tfile.name, 'SectionB'), {})