def test_module_load_from_file(self):
        plugin_path = os.path.join(SRC_ROOT, 'plugin/standaloneplugin.py')
        plugin_classes = plugin_loader.register_plugin(
            LoaderTest.DummyPlugin, plugin_path)
        # Even though there are two classes in that file, only one
        # matches the specs of DummyPlugin class.
        self.assertEqual(1, len(plugin_classes))
        # Validate sys.path now contains the plugin directory.
        self.assertTrue(sys.path in os.path.abspath(os.path.join(SRC_ROOT, 'plugin')))
        # Validate the individual plugins
        for plugin_class in plugin_classes:
            try:
                plugin_instance = plugin_class()
                ret_val = plugin_instance.do_work()
                self.assertIsNotNone(ret_val, 'Should be non-null.')
            except:
                pass
dataset/ETHPy150Open StackStorm/st2/st2common/tests/unit/test_plugin_loader.py/LoaderTest.test_module_load_from_file/swapped operands of `in`