'should attempt load on dirs containing loading_point file'

def test_loading_point(self):

    mock_app_dir = galaxy_mock.MockDir({'plugins': {'plugin1': {loading_point: contents1}, 'not_a_plugin': 'blerbler'}})
    mock_app = galaxy_mock.MockApp(root=mock_app_dir.root_path)
    plugin_mgr = HookPluginManager(mock_app, directories_setting='plugins')
    app_path = mock_app_dir.root_path
    expected_plugins_path = os.path.join(app_path, 'plugins')
    self.assertEqual(plugin_mgr.directories, [expected_plugins_path])
    self.assertEqual(list(plugin_mgr.plugins.keys()), ['plugin1'])
    plugin = plugin_mgr.plugins['plugin1']
    self.assertEqual(plugin.name, 'plugin1')
    self.assertEqual(plugin.path, os.path.join(expected_plugins_path, 'plugin1'))
    self.assertIsInstance(plugin.module, types.ModuleType)
    self.assertEqual(plugin.module.bler(2), (2, 3))
    mock_app_dir.remove()
