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

Function check_base_event

tests/tests_server.py:554–558  ·  view source on GitHub ↗
(test, ev)

Source from the content-addressed store, hash-verified

552
553
554def check_base_event(test, ev):
555 test.assertIsNot(ev, None) # we did not receive event
556 test.assertIsInstance(ev, BaseEvent)
557 test.assertEqual(ev.EventType, ua.NodeId(ua.ObjectIds.BaseEventType))
558 test.assertEqual(ev.Severity, 1)
559
560
561def check_eventgenerator_CustomEvent(test, evgen, etype):

Calls

no outgoing calls

Tested by

no test coverage detected