'should attempt load if criteria met'

def test_plugin_load_from_repo(self):

    mock_app = galaxy_mock.MockApp(root=glx_dir)
    plugin_mgr = VisualizationsRegistry(mock_app, directories_setting=vis_reg_path, template_cache_dir=None)
    expected_plugins_path = os.path.join(glx_dir, vis_reg_path)
    self.assertEqual(plugin_mgr.base_url, 'visualizations')
    self.assertEqual(plugin_mgr.directories, [expected_plugins_path])
    scatterplot = plugin_mgr.plugins['scatterplot']
    self.assertEqual(scatterplot.name, 'scatterplot')
    self.assertEqual(scatterplot.path, os.path.join(expected_plugins_path, 'scatterplot'))
    self.assertEqual(scatterplot.base_url, '/'.join([plugin_mgr.base_url, scatterplot.name]))
    self.assertTrue(scatterplot.serves_static)
    self.assertEqual(scatterplot.static_path, os.path.join(scatterplot.path, 'static'))
    self.assertEqual(scatterplot.static_url, '/'.join([scatterplot.base_url, 'static']))
    self.assertTrue(scatterplot.serves_templates)
    self.assertEqual(scatterplot.template_path, os.path.join(scatterplot.path, 'templates'))
    self.assertEqual(scatterplot.template_lookup.__class__.__name__, 'TemplateLookup')
    trackster = plugin_mgr.plugins['trackster']
    self.assertEqual(trackster.name, 'trackster')
    self.assertEqual(trackster.path, os.path.join(expected_plugins_path, 'trackster'))
    self.assertEqual(trackster.base_url, '/'.join([plugin_mgr.base_url, trackster.name]))
    self.assertFalse(trackster.serves_static)
    self.assertFalse(trackster.serves_templates)
