hurry.jqueryform basic tests
==========================

Here are some basic tests for hurry.jqueryform.

Let's set up a way to render URLs; typically the framework has already
done this::

  >>> class Plugin(object):
  ...   def get_library_url(self, library):
  ...     return 'http://localhost/static/%s' % (library.name)
  >>> from hurry import resource
  >>> resource.register_plugin(Plugin())

Render the inclusion::

  >>> from hurry.resource import NeededInclusions
  >>> from hurry.jqueryform import jqueryform
  >>> needed = NeededInclusions()
  >>> needed.need(jqueryform)
  >>> print needed.render()
  <script type="text/javascript" src="http://localhost/static/jquery_lib/jquery-1.4.2.js"></script>
  <script type="text/javascript" src="http://localhost/static/jqueryform/jquery.form.js"></script>

  >>> needed.mode('minified')
  >>> print needed.render()
  <script type="text/javascript" src="http://localhost/static/jquery_lib/jquery-1.4.2.min.js"></script>
  <script type="text/javascript" src="http://localhost/static/jqueryform/jquery.form.min.js"></script>


