Skip to content

Commit

Permalink
Test the clear subscriber.
Browse files Browse the repository at this point in the history
Should give 100% test coverage.
  • Loading branch information
mauritsvanrees committed Mar 28, 2020
1 parent 9df035e commit 56b710d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/globalrequest/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class DummyEvent(object):

# test clear
zope.globalrequest.subscribers.set(None, dummy_event)
zope.globalrequest.subscribers.clearRequest()
zope.globalrequest.subscribers.clear(dummy_event)
self.assertIs(zope.globalrequest.getRequest(), None)


Expand Down

0 comments on commit 56b710d

Please sign in to comment.