Commits

Anonymous committed de60e24 Draft

new TC

Comments (0)

Files changed (1)

test/plugins_test.py

 #    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):