def test_remove_section(self):
        """
        Check removing a section.
        """
        section_name = u'another_muță'
        config_file = StringIO((
            u'[%s]\n'
            u'some_value: 3\n'
            u''
            ) % (section_name))
        config = FileConfigurationProxy(
            configuration_file=config_file)
        config.load()
        self.assertTrue(config.hasSection(section_name))

        config.removeSection(section_name)

        self.assertFalse(config.hasSection(section_name))
 def test_hasSection(self):
     """
     Check hasSection.
     """
     config_file = StringIO(
         u'[some_section]\n'
         u'[another_muță]\n'
         u'some_value: 3\n'
         u'',
         )
     config = FileConfigurationProxy(
         configuration_file=config_file)
     config.load()
     self.assertTrue(config.hasSection(u'some_section'))
     self.assertTrue(config.hasSection(u'another_muță'))