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

Method test_get_node_by_nodeid

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

Source from the content-addressed store, hash-verified

312 root.set_value(99)
313
314 def test_get_node_by_nodeid(self):
315 root = self.opc.get_root_node()
316 server_time_node = root.get_child(['0:Objects', '0:Server', '0:ServerStatus', '0:CurrentTime'])
317 correct = self.opc.get_node(ua.NodeId(ua.ObjectIds.Server_ServerStatus_CurrentTime))
318 self.assertEqual(server_time_node, correct)
319
320 def test_datetime_read(self):
321 time_node = self.opc.get_node(ua.NodeId(ua.ObjectIds.Server_ServerStatus_CurrentTime))

Callers

nothing calls this directly

Calls 3

get_childMethod · 0.80
get_root_nodeMethod · 0.45
get_nodeMethod · 0.45

Tested by

no test coverage detected