Warning
This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
galaxy.tool_util.verify.asserts package¶
-
galaxy.tool_util.verify.asserts.
verify_assertions
(data, assertion_description_list)[source]¶ This function takes a list of assertions and a string to check these assertions against.
Submodules¶
galaxy.tool_util.verify.asserts.archive module¶
-
galaxy.tool_util.verify.asserts.archive.
assert_has_archive_member
(output_bytes, path, verify_assertions_function, children)[source]¶ Recursively checks the specified children assertions against the text of the first element matching the specified path found within the archive. Currently supported formats: .zip, .tar, .tar.gz.
galaxy.tool_util.verify.asserts.hdf5 module¶
galaxy.tool_util.verify.asserts.tabular module¶
galaxy.tool_util.verify.asserts.text module¶
-
galaxy.tool_util.verify.asserts.text.
assert_has_text
(output, text)[source]¶ Asserts specified output contains the substring specified by the argument text.
-
galaxy.tool_util.verify.asserts.text.
assert_not_has_text
(output, text)[source]¶ Asserts specified output does not contain the substring specified the argument text.
-
galaxy.tool_util.verify.asserts.text.
assert_has_line
(output, line)[source]¶ Asserts the specified output contains the line specified the argument line.
-
galaxy.tool_util.verify.asserts.text.
assert_has_n_lines
(output, n)[source]¶ Asserts the specified output contains
n
lines.
galaxy.tool_util.verify.asserts.xml module¶
-
galaxy.tool_util.verify.asserts.xml.
assert_is_valid_xml
(output)[source]¶ Simple assertion that just verifies the specified output is valid XML.
-
galaxy.tool_util.verify.asserts.xml.
assert_has_element_with_path
(output, path)[source]¶ Asserts the specified output has at least one XML element with a path matching the specified path argument. Valid paths are the simplified subsets of XPath implemented by xml.etree; http://effbot.org/zone/element-xpath.htm for more information.
-
galaxy.tool_util.verify.asserts.xml.
assert_has_n_elements_with_path
(output, path, n)[source]¶ Asserts the specified output has exactly n elements matching the path specified.
-
galaxy.tool_util.verify.asserts.xml.
assert_element_text_matches
(output, path, expression)[source]¶ Asserts the text of the first element matching the specified path matches the specified regular expression.
-
galaxy.tool_util.verify.asserts.xml.
assert_element_text_is
(output, path, text)[source]¶ Asserts the text of the first element matching the specified path matches exactly the specified text.
-
galaxy.tool_util.verify.asserts.xml.
assert_attribute_matches
(output, path, attribute, expression)[source]¶ Asserts the specified attribute of the first element matching the specified path matches the specified regular expression.