def test_remove_option(self): """ Test remove_option method. """ self.assertEqual( ini.remove_option(self.tfile.name, "SectionB", "test1"), "value 1B" ) self.assertIsNone(ini.get_option(self.tfile.name, "SectionB", "test1"))
def test_remove_option(self): ''' Test remove_option method. ''' self.assertEqual( ini.remove_option(self.tfile.name, 'SectionB', 'test1'), 'value 1B') self.assertIsNone(ini.get_option(self.tfile.name, 'SectionB', 'test1'))
def test_remove_option(self): self.assertEqual( ini.remove_option(self.tfile.name, 'SectionB', 'test1'), 'value 1B') self.assertIsNone(ini.get_option(self.tfile.name, 'SectionB', 'test1'))