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

Method test_method_tuple

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

Source from the content-addressed store, hash-verified

583 self.assertEqual(result.OutputArguments, [[2.2, 6.8, 18]])
584
585 def test_method_tuple(self):
586 o = self.opc.get_objects_node()
587 m = o.get_child("2:ServerMethodTuple")
588 result = o.call_method(m)
589 self.assertEqual(result, [1, 2, 3])
590 result = call_method_full(o, m)
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..

Callers

nothing calls this directly

Calls 4

call_method_fullFunction · 0.90
get_childMethod · 0.80
call_methodMethod · 0.80
get_objects_nodeMethod · 0.45

Tested by

no test coverage detected