diff options
Diffstat (limited to 'deluge/tests/test_alertmanager.py')
-rw-r--r-- | deluge/tests/test_alertmanager.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/deluge/tests/test_alertmanager.py b/deluge/tests/test_alertmanager.py index 5e63864..683b011 100644 --- a/deluge/tests/test_alertmanager.py +++ b/deluge/tests/test_alertmanager.py @@ -21,15 +21,19 @@ class TestAlertManager(BaseTestCase): def test_register_handler(self): def handler(alert): - return + ... - self.am.register_handler('dummy_alert', handler) - assert self.am.handlers['dummy_alert'] == [handler] + self.am.register_handler('dummy1', handler) + self.am.register_handler('dummy2_alert', handler) + assert self.am.handlers['dummy1'] == [handler] + assert self.am.handlers['dummy2'] == [handler] def test_deregister_handler(self): def handler(alert): - return + ... - self.am.register_handler('dummy_alert', handler) + self.am.register_handler('dummy1', handler) + self.am.register_handler('dummy2_alert', handler) self.am.deregister_handler(handler) - assert self.am.handlers['dummy_alert'] == [] + assert self.am.handlers['dummy1'] == [] + assert self.am.handlers['dummy2'] == [] |