Example #1
0
 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"))
Example #2
0
 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'))
Example #3
0
 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'))