''

def test_script_entry(self):

    script_entry_config = utility.clean_multiline_string('                                <?xml    version="1.0"    encoding="UTF-8"?>\n                                <visualization    name="js-test">\n                                                <data_sources>\n                                                                <data_source>\n                                                                                <model_class>HistoryDatasetAssociation</model_class>\n                                                                </data_source>\n                                                </data_sources>\n                                                <entry_point    entry_point_type="script"    data-main="one"    src="bler"></entry_point>\n                                </visualization>\n                                ')
    mock_app_dir = galaxy_mock.MockDir({'plugins': {'jstest': {'config': {'jstest.xml': script_entry_config}, 'static': {}}}})
    mock_app = galaxy_mock.MockApp(root=mock_app_dir.root_path)
    plugin_mgr = VisualizationsRegistry(mock_app, directories_setting='plugins', template_cache_dir=template_cache_dir)
    script_entry = plugin_mgr.plugins['jstest']
    self.assertIsInstance(script_entry, plugin.ScriptVisualizationPlugin)
    self.assertEqual(script_entry.name, 'jstest')
    self.assertTrue(script_entry.serves_static)
    self.assertTrue(script_entry.serves_templates)
    self.assertEqual(script_entry.static_path, os.path.join(script_entry.path, 'static'))
    trans = galaxy_mock.MockTrans()
    script_entry._set_up_template_plugin(mock_app_dir.root_path, [addtional_templates_dir])
    response = script_entry._render({}, trans=trans, embedded=True)
    self.assertTrue(('src="bler"' in response))
    self.assertTrue(('type="text/javascript"' in response))
    self.assertTrue(('data-main="one"' in response))
    mock_app_dir.remove()
