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

Method test_basic256sha256

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

Source from the content-addressed store, hash-verified

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)
76 try:
77 clt.set_security_string("Basic256Sha256,Sign,examples/certificate-example.der,examples/private-key-example.pem")
78 clt.connect()
79 self.assertTrue(clt.get_objects_node().get_children())
80 finally:
81 clt.disconnect()
82
83 def test_basic256sha256_longkey(self):
84 clt = Client(self.uri_crypto2)

Callers

nothing calls this directly

Calls 6

set_security_stringMethod · 0.95
connectMethod · 0.95
get_objects_nodeMethod · 0.95
disconnectMethod · 0.95
ClientClass · 0.90
get_childrenMethod · 0.80

Tested by

no test coverage detected