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

Method test_method_none

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

Source from the content-addressed store, hash-verified

591 self.assertEqual(result.OutputArguments, [1, 2, 3])
592
593 def test_method_none(self):
594 # this test calls the function linked to the type's method..
595 o = self.opc.get_node(ua.ObjectIds.BaseObjectType).get_child("2:ObjectWithMethodsType")
596 m = o.get_child("2:ServerMethodDefault")
597 result = o.call_method(m)
598 self.assertEqual(result, None)
599 result = call_method_full(o, m)
600 self.assertEqual(result.OutputArguments, [])
601
602 def test_add_nodes(self):
603 objects = self.opc.get_objects_node()

Callers

nothing calls this directly

Calls 4

call_method_fullFunction · 0.90
get_childMethod · 0.80
call_methodMethod · 0.80
get_nodeMethod · 0.45

Tested by

no test coverage detected