def test_deregister_nonexistent(self): with pytest.raises(ConnectionPluginNotRegistered): Connections.deregister("nonexistent_dummy")
def test_deregister_existing(self): Connections.deregister("dummy") assert len(Connections.available) == 1 assert "dummy" not in Connections.available