Files
galaxy/test/unit/tools/test_tool_panel.py
T
John Chilton aa86181e7c Move ToolSection and ToolSectionLabel out of galaxy.tools directly.
Would like to move the whole ToolBox out of galaxy.tools and into galaxy.tools.toolbox but need to separate all dependencies on galaxy.tools first.
2014-12-31 18:21:10 -05:00

28 lines
679 B
Python

from xml.etree import ElementTree as ET
from galaxy.tools.toolbox import ToolSection
def test_tool_section( ):
elem = ET.Element( 'section' )
elem.attrib[ 'name' ] = "Cool Tools"
elem.attrib[ 'id' ] = "cool1"
section = ToolSection( elem )
assert section.id == "cool1"
assert section.name == "Cool Tools"
assert section.version == ""
section = ToolSection( dict(
id="cool1",
name="Cool Tools"
) )
assert section.id == "cool1"
assert section.name == "Cool Tools"
assert section.version == ""
section = ToolSection()
assert section.id == ""
assert section.name == ""
assert section.version == ""