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

Method test_path_string

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

Source from the content-addressed store, hash-verified

707 self.assertEqual(m.get_references(ua.ObjectIds.HasModellingRule), [])
708
709 def test_path_string(self):
710 o = self.opc.nodes.objects.add_folder(1, "titif").add_object(3, "opath")
711 path = o.get_path(as_string=True)
712 self.assertEqual(["0:Root", "0:Objects", "1:titif", "3:opath"], path)
713 path = o.get_path(2, as_string=True)
714 self.assertEqual(["1:titif", "3:opath"], path)
715
716 def test_path(self):
717 of = self.opc.nodes.objects.add_folder(1, "titif")

Callers

nothing calls this directly

Calls 3

add_folderMethod · 0.80
get_pathMethod · 0.80
add_objectMethod · 0.45

Tested by

no test coverage detected