def test_nonexistent_plugin(self): with pytest.raises(ConnectionPluginNotRegistered): Connections.get_plugin("nonexistent_dummy")
def test_get_plugin(self): assert Connections.get_plugin("dummy") == DummyConnectionPlugin assert Connections.get_plugin( "another_dummy") == AnotherDummyConnectionPlugin assert len(Connections.available) == 2