示例#1
0
 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'), {})
示例#2
0
 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"), {})
示例#3
0
 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'), {})