class documentation
Data record specifying params of a command execution to mock/expect. :param str cmd: Command string to expect. If not given, no expectations about the command executed will be set up. Default: ``None``. :param bytes out: Data yielded as remote stdout. Default: ``b""``. :param bytes err: Data yielded as remote stderr. Default: ``b""``. :param int exit: Remote exit code. Default: ``0``. :param int waits: Number of calls to the channel's ``exit_status_ready`` that should return ``False`` before it then returns ``True``. Default: ``0`` (``exit_status_ready`` will return ``True`` immediately). .. versionadded:: 2.1
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | expect |
Assert that the ``channel`` was used to run this command. |
Instance Variable | cmd |
Undocumented |
Instance Variable | err |
Undocumented |
Instance Variable | exit |
Undocumented |
Instance Variable | in_ |
Undocumented |
Instance Variable | out |
Undocumented |
Instance Variable | waits |
Undocumented |
overridden in
fabric.testing.base.ShellCommand
Assert that the ``channel`` was used to run this command. .. versionadded:: 2.7