@@ -34,10 +34,6 @@ def on_track_listener(*args):
34
34
pass
35
35
36
36
37
- def on_log_event_listener (* args ):
38
- pass
39
-
40
-
41
37
class NotificationCenterTest (unittest .TestCase ):
42
38
43
39
def test_add_notification_listener__valid_type (self ):
@@ -63,11 +59,6 @@ def test_add_notification_listener__valid_type(self):
63
59
4 , test_notification_center .add_notification_listener (enums .NotificationTypes .TRACK , on_track_listener )
64
60
)
65
61
66
- self .assertEqual (
67
- 5 , test_notification_center .add_notification_listener (enums .NotificationTypes .LOG_EVENT ,
68
- on_log_event_listener )
69
- )
70
-
71
62
def test_add_notification_listener__multiple_listeners (self ):
72
63
""" Test that multiple listeners of the same type can be successfully added. """
73
64
@@ -147,7 +138,6 @@ def another_on_activate_listener(*args):
147
138
self .assertEqual (2 , len (test_notification_center .notification_listeners [enums .NotificationTypes .ACTIVATE ]))
148
139
self .assertEqual (1 , len (test_notification_center .notification_listeners [enums .NotificationTypes .DECISION ]))
149
140
self .assertEqual (0 , len (test_notification_center .notification_listeners [enums .NotificationTypes .TRACK ]))
150
- self .assertEqual (0 , len (test_notification_center .notification_listeners [enums .NotificationTypes .LOG_EVENT ]))
151
141
152
142
# Remove one of the activate listeners and assert.
153
143
self .assertTrue (test_notification_center .remove_notification_listener (3 ))
@@ -174,10 +164,6 @@ def another_on_activate_listener(*args):
174
164
3 , test_notification_center .add_notification_listener (enums .NotificationTypes .ACTIVATE ,
175
165
another_on_activate_listener )
176
166
)
177
- self .assertEqual (
178
- 4 , test_notification_center .add_notification_listener (enums .NotificationTypes .LOG_EVENT ,
179
- on_log_event_listener )
180
- )
181
167
182
168
# Try removing a listener which does not exist.
183
169
self .assertFalse (test_notification_center .remove_notification_listener (42 ))
@@ -194,7 +180,6 @@ def test_clear_notification_listeners(self):
194
180
on_config_update_listener )
195
181
test_notification_center .add_notification_listener (enums .NotificationTypes .DECISION , on_decision_listener )
196
182
test_notification_center .add_notification_listener (enums .NotificationTypes .TRACK , on_track_listener )
197
- test_notification_center .add_notification_listener (enums .NotificationTypes .LOG_EVENT , on_log_event_listener )
198
183
199
184
# Assert all listeners are there:
200
185
for notification_type in notification_center .NOTIFICATION_TYPES :
@@ -225,7 +210,6 @@ def test_clear_all_notification_listeners(self):
225
210
on_config_update_listener )
226
211
test_notification_center .add_notification_listener (enums .NotificationTypes .DECISION , on_decision_listener )
227
212
test_notification_center .add_notification_listener (enums .NotificationTypes .TRACK , on_track_listener )
228
- test_notification_center .add_notification_listener (enums .NotificationTypes .LOG_EVENT , on_log_event_listener )
229
213
230
214
# Assert all listeners are there:
231
215
for notification_type in notification_center .NOTIFICATION_TYPES :
0 commit comments