コード例 #1
0
 def test_nonexistent_plugin(self):
     with pytest.raises(ConnectionPluginNotRegistered):
         Connections.get_plugin("nonexistent_dummy")
コード例 #2
0
 def test_get_plugin(self):
     assert Connections.get_plugin("dummy") == DummyConnectionPlugin
     assert Connections.get_plugin(
         "another_dummy") == AnotherDummyConnectionPlugin
     assert len(Connections.available) == 2