From e9705a71ab1b6b6fa63e3a92af7286b9b1ce3b8f Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Tue, 31 Dec 2019 20:18:28 -0500 Subject: [PATCH] Add test for direct EventHandler.process() call --- .../test/tracetools_analysis/test_processor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tracetools_analysis/test/tracetools_analysis/test_processor.py b/tracetools_analysis/test/tracetools_analysis/test_processor.py index 818bdad..af7f6c9 100644 --- a/tracetools_analysis/test/tracetools_analysis/test_processor.py +++ b/tracetools_analysis/test/tracetools_analysis/test_processor.py @@ -113,6 +113,11 @@ class TestProcessor(unittest.TestCase): *args, ) + def test_event_handler_process(self) -> None: + # Should not be called directly + with self.assertRaises(AssertionError): + EventHandler.process([]) + def test_handler_wrong_signature(self) -> None: handler = WrongHandler() mock_event = {