The nova.tests.fake_utils Module

This modules stubs out functions in nova.utils.

fake_execute(*cmd_parts, **kwargs)

This function stubs out execute.

It optionally executes a preconfigued function to return expected data.

fake_execute_clear_log()
fake_execute_default_reply_handler(*ignore_args, **ignore_kwargs)

A reply handler for commands that haven’t been added to the reply list.

Returns empty strings for stdout and stderr.

fake_execute_get_log()
fake_execute_set_repliers(repliers)

Allows the client to configure replies to commands.

stub_out_utils_execute(stubs)

Previous topic

The nova.tests.fake_policy Module

Next topic

The nova.tests.fake_volume Module

This Page