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())
def minimal_ssh_console(): return SSHConsole(target="localhost", system=SystemContext(Credentials("root")))