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

Method test_expandednodeid

tests/tests_unit.py:380–384  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

378 ua.QualifiedName.from_string("i:::yu")
379
380 def test_expandednodeid(self):
381 nid = ua.ExpandedNodeId()
382 self.assertEqual(nid.NodeIdType, ua.NodeIdType.TwoByte)
383 nid2 = nodeid_from_binary(ua.utils.Buffer(nodeid_to_binary(nid)))
384 self.assertEqual(nid, nid2)
385
386 def test_null_string(self):
387 v = ua.Variant(None, ua.VariantType.String)

Callers

nothing calls this directly

Calls 2

nodeid_from_binaryFunction · 0.90
nodeid_to_binaryFunction · 0.90

Tested by

no test coverage detected