コード例 #1
0
def test_authenticationState():
    output_device = NetworkedPrinterOutputDevice(device_id="test",
                                                 address="127.0.0.1",
                                                 properties={})

    output_device.setAuthenticationState(AuthState.Authenticated)

    assert output_device.authenticationState == AuthState.Authenticated
コード例 #2
0
def test_authenticationState():
    with patch("UM.Qt.QtApplication.QtApplication.getInstance"):
        output_device = NetworkedPrinterOutputDevice(device_id="test",
                                                     address="127.0.0.1",
                                                     properties={})

    output_device.setAuthenticationState(AuthState.Authenticated)

    assert output_device.authenticationState == AuthState.Authenticated
コード例 #3
0
def test_authenticationState():
    output_device = NetworkedPrinterOutputDevice(device_id="test", address="127.0.0.1", properties={})

    output_device.setAuthenticationState(AuthState.Authenticated)

    assert output_device.authenticationState == AuthState.Authenticated