base_element_text_is_model base model for element_text_is describing attributes.
| field | type | req | description |
| path | string | ✓ | The Python xpath-like expression to find the target element. |
| text | string | ✓ | The expected element text (body of the XML tag) to test against on the target XML element |
| negate | boolean | string | | A boolean that can be set to true to negate the outcome of the assertion. default: false |
base_element_text_matches_model base model for element_text_matches describing attributes.
| field | type | req | description |
| expression | string | ✓ | The regular expressions to apply against the target element. |
| path | string | ✓ | The Python xpath-like expression to find the target element. |
| negate | boolean | string | | A boolean that can be set to true to negate the outcome of the assertion. default: false |
base model for element_text describing attributes.
| field | type | req | description |
| path | string | ✓ | The Python xpath-like expression to find the target element. |
| asserts | → assertion_list | null | | |
| children | → assertion_list | null | | |
| negate | boolean | string | | A boolean that can be set to true to negate the outcome of the assertion. default: false |
base_has_json_property_with_text_model base model for has_json_property_with_text describing attributes.
| field | type | req | description |
| property | string | ✓ | The property name to search the JSON document for. |
| text | string | ✓ | The expected text value of the target JSON attribute. |
base_has_text_matching_model base model for has_text_matching describing attributes.
| field | type | req | description |
| expression | string | ✓ | The regular expressions to attempt match in the output. |
| delta | integer | string | | Allowed difference with respect to n (default: 0), can be suffixed by ``(k|M|G|T|P|E)i?`` default: 0 |
| max | string | integer | null | | Maximum number (default: infinity), can be suffixed by ``(k|M|G|T|P|E)i?`` |
| min | string | integer | null | | Minimum number (default: -infinity), can be suffixed by ``(k|M|G|T|P|E)i?`` |
| n | string | integer | null | | Desired number, can be suffixed by ``(k|M|G|T|P|E)i?`` |
| negate | boolean | string | | A boolean that can be set to true to negate the outcome of the assertion. default: false |
base model for has_text describing attributes.
| field | type | req | description |
| text | string | ✓ | The text to search for in the output. |
| delta | integer | string | | Allowed difference with respect to n (default: 0), can be suffixed by ``(k|M|G|T|P|E)i?`` default: 0 |
| max | string | integer | null | | Maximum number (default: infinity), can be suffixed by ``(k|M|G|T|P|E)i?`` |
| min | string | integer | null | | Minimum number (default: -infinity), can be suffixed by ``(k|M|G|T|P|E)i?`` |
| n | string | integer | null | | Desired number, can be suffixed by ``(k|M|G|T|P|E)i?`` |
| negate | boolean | string | | A boolean that can be set to true to negate the outcome of the assertion. default: false |
base model for not_has_text describing attributes.
| field | type | req | description |
| text | string | ✓ | The text to search for in the output. |
CWL File literal — content inlined as a string.
| field | type | req | description |
| class = "File" | const "File" | ✓ | |
| contents | string | ✓ | |
| composite_data | string[] | null | | |
| dbkey | string | null | | |
| decompress | boolean | null | | |
| deferred | boolean | null | | |
| filetype | string | null | | |
| hashes | → HashEntry[] | null | | |
| identifier | string | null | | |
| info | string | null | | |
| location | string | null | | |
| name | string | null | | |
| path | string | null | | |
| space_to_tab | boolean | null | | |
| tags | string[] | null | | |
| to_posix_lines | boolean | null | | |
Asserts the text of the XML element with the specified XPath-like ``path`` is
the specified ``text``.
For example:
```xml
<element_text_is path="BlastOutput_program" text="blastp" />
```
The assertion implicitly also asserts that an element matching ``path`` exists.
With ``negate`` the result of the assertion (on the equality) can be inverted (the
implicit assertion on the existence of the path is not affected).
| field | type | req | description |
| that = "element_text_is" | const "element_text_is" | | |
| path | string | ✓ | The Python xpath-like expression to find the target element. |
| text | string | ✓ | The expected element text (body of the XML tag) to test against on the target XML element |
| negate | boolean | string | | A boolean that can be set to true to negate the outcome of the assertion. default: false |
element_text_is_model_nested Nested version of this assertion model.
| field | type | req | description |
| element_text_is | → base_element_text_is_model | ✓ | |
element_text_matches_model Asserts the text of the XML element with the specified XPath-like ``path``
matches the regular expression defined by ``expression``.
For example:
```xml
<element_text_matches path="BlastOutput_version" expression="BLASTP\s+2\.2.*"/>
```
The assertion implicitly also asserts that an element matching ``path`` exists.
With ``negate`` the result of the assertion (on the matching) can be inverted (the
implicit assertion on the existence of the path is not affected).
| field | type | req | description |
| that = "element_text_matches" | const "element_text_matches" | | |
| expression | string | ✓ | The regular expressions to apply against the target element. |
| path | string | ✓ | The Python xpath-like expression to find the target element. |
| negate | boolean | string | | A boolean that can be set to true to negate the outcome of the assertion. default: false |
element_text_matches_model_nested Nested version of this assertion model.
| field | type | req | description |
| element_text_matches | → base_element_text_matches_model | ✓ | |
This tag allows the developer to recurisively specify additional assertions as
child elements about just the text contained in the element specified by the
XPath-like ``path``, e.g.
```xml
<element_text path="BlastOutput_iterations/Iteration/Iteration_hits/Hit/Hit_def">
<not_has_text text="EDK72998.1" />
</element_text>
```
The assertion implicitly also asserts that an element matching ``path`` exists.
With ``negate`` the result of the implicit assertions can be inverted.
The sub-assertions, which have their own ``negate`` attribute, are not affected
by ``negate``.
| field | type | req | description |
| that = "element_text" | const "element_text" | | |
| path | string | ✓ | The Python xpath-like expression to find the target element. |
| asserts | → assertion_list | null | | |
| children | → assertion_list | null | | |
| negate | boolean | string | | A boolean that can be set to true to negate the outcome of the assertion. default: false |
element_text_model_nested Nested version of this assertion model.
| field | type | req | description |
| element_text | → base_element_text_model | ✓ | |
has_json_property_with_text_model Asserts the JSON document contains a property or key with the specified text (i.e. string) value.
```xml
<has_json_property_with_text property="color" text="red" />
```
| field | type | req | description |
| that = "has_json_property_with_text" | const "has_json_property_with_text" | | |
| property | string | ✓ | The property name to search the JSON document for. |
| text | string | ✓ | The expected text value of the target JSON attribute. |
has_json_property_with_text_model_nested Nested version of this assertion model.
| field | type | req | description |
| has_json_property_with_text | → base_has_json_property_with_text_model | ✓ | |
Asserts the specified output contains text matching the
regular expression specified by the argument expression.
If n is given the assertion checks for exactly n (nonoverlapping)
occurrences.
| field | type | req | description |
| that = "has_text_matching" | const "has_text_matching" | | |
| expression | string | ✓ | The regular expressions to attempt match in the output. |
| delta | integer | string | | Allowed difference with respect to n (default: 0), can be suffixed by ``(k|M|G|T|P|E)i?`` default: 0 |
| max | string | integer | null | | Maximum number (default: infinity), can be suffixed by ``(k|M|G|T|P|E)i?`` |
| min | string | integer | null | | Minimum number (default: -infinity), can be suffixed by ``(k|M|G|T|P|E)i?`` |
| n | string | integer | null | | Desired number, can be suffixed by ``(k|M|G|T|P|E)i?`` |
| negate | boolean | string | | A boolean that can be set to true to negate the outcome of the assertion. default: false |
has_text_matching_model_nested Nested version of this assertion model.
| field | type | req | description |
| has_text_matching | → base_has_text_matching_model | ✓ | |
Asserts specified output contains the substring specified by
the argument text. The exact number of occurrences can be
optionally specified by the argument n
| field | type | req | description |
| that = "has_text" | const "has_text" | | |
| text | string | ✓ | The text to search for in the output. |
| delta | integer | string | | Allowed difference with respect to n (default: 0), can be suffixed by ``(k|M|G|T|P|E)i?`` default: 0 |
| max | string | integer | null | | Maximum number (default: infinity), can be suffixed by ``(k|M|G|T|P|E)i?`` |
| min | string | integer | null | | Minimum number (default: -infinity), can be suffixed by ``(k|M|G|T|P|E)i?`` |
| n | string | integer | null | | Desired number, can be suffixed by ``(k|M|G|T|P|E)i?`` |
| negate | boolean | string | | A boolean that can be set to true to negate the outcome of the assertion. default: false |
Nested version of this assertion model.
| field | type | req | description |
| has_text | → base_has_text_model | ✓ | |
| field | type | req | description |
| hash_function | string | ✓ | |
| hash_value | string | ✓ | |
Asserts specified output does not contain the substring
specified by the argument text
| field | type | req | description |
| that = "not_has_text" | const "not_has_text" | | |
| text | string | ✓ | The text to search for in the output. |
not_has_text_model_nested Nested version of this assertion model.
| field | type | req | description |
| not_has_text | → base_not_has_text_model | ✓ | |