def test_load_from_path():
    from giblets.core import ComponentManager, Component, ExtensionPoint
    from giblets.search import find_plugins_in_path
    
    class PluginFinder(Component):
        found_plugins = ExtensionPoint(TestPathInterface)

    mgr = ComponentManager()
    pf = PluginFinder(mgr)
    
    # to start with, nothing should be found    
    assert len(pf.found_plugins) == 0
    
    find_plugins_in_path('test_plugin_path')

    expected_plugins = ['TestPathPlugin1', 'TestPathPlugin2', 'TestPathPlugin3']
    got_plugins = set()

    assert len(pf.found_plugins) == len(expected_plugins)    
    for plugin in pf.found_plugins:
        plugin_name = plugin.__class__.__name__
        assert plugin_name in expected_plugins
        got_plugins.add(plugin_name)
    for plugin_name in expected_plugins:
        assert got_plugins in plugin_name
dataset/ETHPy150Open ltucker/giblets/tests/test_search.py/test_load_from_path/swapped operands of `in`