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