diff --git a/monkey/tests/unit_tests/common/event_queue/test_event_queue.py b/monkey/tests/unit_tests/common/event_queue/test_event_queue.py index 2b2aba3ac..7e3b9e62d 100644 --- a/monkey/tests/unit_tests/common/event_queue/test_event_queue.py +++ b/monkey/tests/unit_tests/common/event_queue/test_event_queue.py @@ -53,51 +53,3 @@ def test_subscribe_tags(): assert event_queue_file.pub.sendMessage.call_count == 3 assert subscriber.call_count == 1 - - -def test_unsubscribe_all(): - subscriber = MagicMock() - - EventQueue.subscribe_all(subscriber) - EventQueue.publish(EventType) - - assert event_queue_file.pub.sendMessage.call_count == 3 - assert subscriber.call_count == 3 - - EventQueue.unsubscribe_all(subscriber) - EventQueue.publish(EventType) - - assert event_queue_file.pub.sendMessage.call_count == 6 - assert subscriber.call_count == 3 - - -def test_unsubscribe_types(): - subscriber = MagicMock() - - EventQueue.subscribe_all(subscriber) - EventQueue.publish(EventType) - - assert event_queue_file.pub.sendMessage.call_count == 3 - assert subscriber.call_count == 3 - - EventQueue.unsubscribe_types([EventType], subscriber) - EventQueue.publish(EventType) - - assert event_queue_file.pub.sendMessage.call_count == 6 - assert subscriber.call_count == 5 - - -def test_unsubscribe_tags(): - subscriber = MagicMock() - - EventQueue.subscribe_all(subscriber) - EventQueue.publish(EventType) - - assert event_queue_file.pub.sendMessage.call_count == 3 - assert subscriber.call_count == 3 - - EventQueue.unsubscribe_tags([EVENT_TAG_1, EVENT_TAG_2], subscriber) - EventQueue.publish(EventType) - - assert event_queue_file.pub.sendMessage.call_count == 6 - assert subscriber.call_count == 4