def METHOD_NAME(self):
    """Test use of modules_tool function in the context of using EasyBuild framework as a library."""
    error_pattern = r"Undefined build option: .*"
    error_pattern += r" Make sure you have set up the EasyBuild configuration using set_up_configuration\(\)"
    self.assertErrorRegex(EasyBuildError, error_pattern, modules_tool)
    self.configure()
    test_mods_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'modules')
    modtool = modules_tool()
    modtool.use(test_mods_path)
    self.assertIn('GCC/6.4.0-2.28', modtool.available())
    modtool.load(['GCC/6.4.0-2.28'])
    self.assertEqual(modtool.list(), [{'default': None, 'mod_name': 'GCC/6.4.0-2.28'}])