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

Method test_xml_string_with_null_description

tests/tests_xml.py:206–210  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

204 self._test_xml_var_type(o, "string")
205
206 def test_xml_string_with_null_description(self):
207 o = self.opc.nodes.objects.add_variable(2, "xmlstring", "mystring")
208 o.set_attribute(ua.AttributeIds.Description, ua.DataValue(None))
209 o2 = self._test_xml_var_type(o, "string")
210 self.assertEqual(o.get_description(), o2.get_description())
211
212 def test_xml_string_array(self):
213 o = self.opc.nodes.objects.add_variable(2, "xmlstringarray", ["mystring2", "mystring3"])

Callers

nothing calls this directly

Calls 4

_test_xml_var_typeMethod · 0.95
set_attributeMethod · 0.80
get_descriptionMethod · 0.80
add_variableMethod · 0.45

Tested by

no test coverage detected