def test_empty_content(self):
     content = ""
     config = moodle_file_parser(content)
     self.assertIsNotNone(config)
 def test_returns_configparser_instance(self):
     import configparser
     content = "[test]\nkey=value"
     config = moodle_file_parser(content)
     self.assertIsInstance(config, configparser.ConfigParser)
 def read_moodle_config(self):
     try:
         return parsers.moodle_file_parser(self.read_file(self.moodle_filename, raiseException=True))
     except FileNotFoundError as e:
         strerr = e.args[0]
         raise MoodleFileNotFound(strerr)