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

Method test_root

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

Source from the content-addressed store, hash-verified

231 self.assertEqual(ua.QualifiedName('Server', 0), node.get_browse_name())
232
233 def test_root(self):
234 root = self.opc.get_root_node()
235 self.assertEqual(ua.QualifiedName('Root', 0), root.get_browse_name())
236 self.assertEqual(ua.LocalizedText('Root'), root.get_display_name())
237 nid = ua.NodeId(84, 0)
238 self.assertEqual(nid, root.nodeid)
239
240 def test_objects(self):
241 objects = self.opc.get_objects_node()

Callers

nothing calls this directly

Calls 3

get_browse_nameMethod · 0.80
get_display_nameMethod · 0.80
get_root_nodeMethod · 0.45

Tested by

no test coverage detected