################################################################################
-def extract_component_from_section(section):
+def extract_component_from_section(section, session=None):
component = ""
if section.find('/') != -1:
# Expand default component
if component == "":
- comp = get_component(section)
+ comp = get_component(section, session)
if comp is None:
component = "main"
else:
- component = comp.componant_name
+ component = comp.component_name
return (section, component)
"""
def assertExtract(self, input, output):
+ self.setup_components()
self.assertEqual(
- extract_component_from_section(input)[1],
+ extract_component_from_section(input, self.session)[1],
output,
)