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

Method test_bad_attribute

tests/tests_common.py:309–312  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

307 server_time_node = root.get_child(['0:Objects', '0:Server', '0:nonexistingnode'])
308
309 def test_bad_attribute(self):
310 root = self.opc.get_root_node()
311 with self.assertRaises(ua.UaStatusCodeError):
312 root.set_value(99)
313
314 def test_get_node_by_nodeid(self):
315 root = self.opc.get_root_node()

Callers

nothing calls this directly

Calls 2

set_valueMethod · 0.80
get_root_nodeMethod · 0.45

Tested by

no test coverage detected