MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / test_nocrypto_fail

Method test_nocrypto_fail

tests/tests_crypto_connect.py:69–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 clt.disconnect()
68
69 def test_nocrypto_fail(self):
70 clt = Client(self.uri_no_crypto)
71 with self.assertRaises(ua.UaError):
72 clt.set_security_string("Basic256Sha256,Sign,examples/certificate-example.der,examples/private-key-example.pem")
73
74 def test_basic256sha256(self):
75 clt = Client(self.uri_crypto)

Callers

nothing calls this directly

Calls 2

set_security_stringMethod · 0.95
ClientClass · 0.90

Tested by

no test coverage detected