Skip to content

Commit

Permalink
improvements on test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jovanepires committed Apr 12, 2020
1 parent e409bb9 commit 869d754
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_basic.py
Expand Up @@ -159,6 +159,10 @@ def test_remove_listener():
):
listener = mock.MagicMock()
assert not dispatcher.has_listeners(event_id)

dispatcher.remove_listener(event_id, listener)
assert not dispatcher.has_listeners(event_id)

dispatcher.add_listener(event_id, listener)
assert dispatcher.has_listeners(event_id)

Expand Down

0 comments on commit 869d754

Please sign in to comment.