Exemplo n.º 1
0
 def test_get_section(self):
     '''
     Test get_section method.
     '''
     self.assertEqual(
         ini.get_section(self.tfile.name, 'SectionB'),
         {'test1': 'value 1B', 'test3': 'value 3B'})
Exemplo n.º 2
0
 def test_get_section(self):
     """
     Test get_section method.
     """
     self.assertEqual(
         ini.get_section(self.tfile.name, "SectionB"),
         {"test1": "value 1B", "test3": "value 3B"},
     )
Exemplo n.º 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'), {})
Exemplo n.º 4
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'), {})