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

Method test_string_to_variant_nodeid

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

Source from the content-addressed store, hash-verified

206 self.assertEqual(string_to_val(s_arr_datetime, ua.VariantType.DateTime), arr_datetime)
207
208 def test_string_to_variant_nodeid(self):
209 s_arr_nodeid = "[ns=2;i=56, i=45]"
210 arr_nodeid = [ua.NodeId.from_string("ns=2;i=56"), ua.NodeId.from_string("i=45")]
211 s_nodeid = "i=45"
212 self.assertEqual(string_to_val(s_arr_nodeid, ua.VariantType.NodeId), arr_nodeid)
213
214 def test_string_to_variant_status_code(self):
215 s_statuscode = "Good"

Callers

nothing calls this directly

Calls 2

string_to_valFunction · 0.90
from_stringMethod · 0.45

Tested by

no test coverage detected