"""
hurry.jquery basic tests
========================

Here are some basic tests for hurry.jquery.

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

  >>> def get_library_url(library):
  ...    return 'http://localhost/static/%s' % (library.name)
  >>> from hurry.resource import Library
  >>> from hurry.resource.interfaces import ILibraryUrl
  >>> from zope import component
  >>> # register the ILibraryUrl adaptation for the tests.
  >>> component.provideAdapter(
  ...     factory=get_library_url, adapts=(Library,), provides=ILibraryUrl)

Render the inclusion::

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

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

"""
