Warning

This document is for an old release 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.tools.verify.asserts package

galaxy.tools.verify.asserts.verify_assertions(data, assertion_description_list)[source]

This function takes a list of assertions and a string to check these assertions against.

galaxy.tools.verify.asserts.verify_assertion(data, assertion_description)[source]

Submodules

galaxy.tools.verify.asserts.hdf5 module

galaxy.tools.verify.asserts.hdf5.assert_has_h5_attribute(output_bytes, key, value)[source]

Asserts the specified HDF5 output has a given key-value pair as HDF5 attribute

galaxy.tools.verify.asserts.hdf5.assert_has_h5_keys(output_bytes, keys)[source]

Asserts the specified HDF5 output has exactly the given keys.

galaxy.tools.verify.asserts.tabular module

galaxy.tools.verify.asserts.tabular.get_first_line(output)[source]
galaxy.tools.verify.asserts.tabular.assert_has_n_columns(output, n, sep='\t')[source]

Asserts the tabular output contains n columns. The optional sep argument specifies the column seperator used to determine the number of columns.

galaxy.tools.verify.asserts.text module

galaxy.tools.verify.asserts.text.assert_has_text(output, text)[source]

Asserts specified output contains the substring specified by the argument text.

galaxy.tools.verify.asserts.text.assert_not_has_text(output, text)[source]

Asserts specified output does not contain the substring specified the argument text.

galaxy.tools.verify.asserts.text.assert_has_line(output, line)[source]

Asserts the specified output contains the line specified the argument line.

galaxy.tools.verify.asserts.text.assert_has_text_matching(output, expression)[source]

Asserts the specified output contains text matching the regular expression specified by the argument expression.

galaxy.tools.verify.asserts.text.assert_has_line_matching(output, expression)[source]

Asserts the specified output contains a line matching the regular expression specified by the argument expression.

galaxy.tools.verify.asserts.xml module

galaxy.tools.verify.asserts.xml.to_xml(output)[source]
galaxy.tools.verify.asserts.xml.xml_find_text(output, path)[source]
galaxy.tools.verify.asserts.xml.xml_find(output, path)[source]
galaxy.tools.verify.asserts.xml.assert_is_valid_xml(output)[source]

Simple assertion that just verifies the specified output is valid XML.

galaxy.tools.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.tools.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.tools.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.tools.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.tools.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.

galaxy.tools.verify.asserts.xml.assert_attribute_is(output, path, attribute, text)[source]

Asserts the specified attribute of the first element matching the specified path matches exactly the specified text.

galaxy.tools.verify.asserts.xml.assert_element_text(output, path, verify_assertions_function, children)[source]

Recursively checks the specified assertions against the text of the first element matching the specified path.