We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c93baa commit 9f68fc8Copy full SHA for 9f68fc8
1 file changed
tests/test_services.py
@@ -275,3 +275,18 @@ class MyPartialListener(r.ServiceListener):
275
)
276
277
zc.close()
278
+
279
280
+def test_signal_registration_interface():
281
+ """Test adding and removing from the SignalRegistrationInterface."""
282
283
+ interface = r.SignalRegistrationInterface([])
284
285
+ def dummy():
286
+ pass
287
288
+ interface.register_handler(dummy)
289
+ interface.unregister_handler(dummy)
290
291
+ with pytest.raises(ValueError):
292
0 commit comments