The watcherclient.tests.functional.v1.base Module

class watcherclient.tests.functional.v1.base.TestCase(*args, **kwargs)[source]

Bases: testtools.testcase.TestCase

classmethod assertInOutput(expected, actual)[source]
classmethod assertOutput(expected, actual)[source]
assert_show_fields(items, field_names)[source]

Verify that all items have keys listed in field_names.

assert_show_structure(items, field_names)[source]

Verify that all field_names listed in keys of all items.

assert_table_structure(items, field_names)[source]

Verify that all items have keys listed in field_names.

delimiter_line = <_sre.SRE_Pattern object>
classmethod get_opts(fields, format='value')[source]
parse_listing(raw_output)[source]

Return list of dicts with basic item parsed from cli output.

static parse_show(raw_output)[source]

Return list of dicts with item values parsed from cli output.

static parse_show_as_object(raw_output)[source]

Return a dict with values parsed from cli output.

classmethod watcher(cmd, fail_ok=False)[source]

Executes watcherclient command for the given action.

watcherclient.tests.functional.v1.base.execute(cmd, fail_ok=False, merge_stderr=False)[source]

Executes specified command for the given action.