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

Function check_custom_event

tests/tests_server.py:567–571  ·  view source on GitHub ↗
(test, ev, etype)

Source from the content-addressed store, hash-verified

565
566
567def check_custom_event(test, ev, etype):
568 test.assertIsNot(ev, None) # we did not receive event
569 test.assertIsInstance(ev, BaseEvent)
570 test.assertEqual(ev.EventType, etype.nodeid)
571 test.assertEqual(ev.Severity, 1)
572
573
574def check_custom_type(test, type, base_type, node_class=None):

Calls

no outgoing calls

Tested by

no test coverage detected