This modules stubs out functions in nova.utils.
-
nova.tests.fake_utils.fake_execute(*cmd_parts, **kwargs)
This function stubs out execute.
It optionally executes a preconfigued function to return expected data.
-
nova.tests.fake_utils.fake_execute_clear_log()
-
nova.tests.fake_utils.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.
-
nova.tests.fake_utils.fake_execute_get_log()
-
nova.tests.fake_utils.fake_execute_set_repliers(repliers)
Allows the client to configure replies to commands.
-
nova.tests.fake_utils.stub_out_utils_execute(stubs)