def test_ini(self): """Unit test for class Ini""" from tests.TestFileUtilities import test_ini_helper def execute_ini(path, section, parameter): effective_parameter = "" if parameter is not None: effective_parameter = 'parameter="%s"' % parameter action_str = u'<action command="ini" search="file" path="%s" section="%s" %s />' \ % (path, section, effective_parameter) self._test_action_str(action_str) test_ini_helper(self, execute_ini)