示例#1
0
def test_TargetFactory_create_serial_should_error_if_unconsumed(serial_config):
    serial_config['unused'] = 'abc'

    with pytest.raises(ConfigurationError):
        TargetFactory.create_serial(Configuration(serial_config),
                                    SystemContext())
示例#2
0
def minimal_ssh_console():
    return SSHConsole(target="localhost", system=SystemContext(Credentials("root")))