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

Method test_service_fault

tests/tests_client.py:57–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55 cls.srv.stop()
56
57 def test_service_fault(self):
58 request = ua.ReadRequest()
59 request.TypeId = ua.FourByteNodeId(999) # bad type!
60 with self.assertRaises(ua.UaStatusCodeError):
61 self.clt.uaclient._uasocket.send_request(request)
62
63 def test_objects_anonymous(self):
64 objects = self.ro_clt.get_objects_node()

Callers

nothing calls this directly

Calls 1

send_requestMethod · 0.80

Tested by

no test coverage detected