1. Bernhard Biskup
  2. araldo

Commits

bb b...@gmx.de  committed de60e24 Draft

new TC

  • Participants
  • Parent commits be07479
  • Branches default

Comments (0)

Files changed (1)

File test/plugins_test.py

View file
  • Ignore whitespace
 #    sut.PluginManager.instantiate_plugins()
 
 
-def test_remove_plugin_instance(plugin_manager):
+def test_remove_existing_plugin_instance(plugin_manager):
     plugin_manager.remove_plugin_instance(
         "araldo.endpoints.outbound",
         "redis_out_3")
         plugin_manager._plugin_instances["araldo.endpoints.outbound"]
 
 
+def test_remove_nonexisting_plugin_instance(plugin_manager):
+    assert "redis_out_XX" not in \
+        plugin_manager._plugin_instances["araldo.endpoints.outbound"]
+    plugin_manager.remove_plugin_instance(
+        "araldo.endpoints.outbound",
+        "redis_out_XX")
+    assert "redis_out_XX" not in \
+        plugin_manager._plugin_instances["araldo.endpoints.outbound"]
+
+
 def test_error_if_singleton_not_initialized():
     sut.PluginManager._instance = None
     with pytest.raises(Exception):