"""
hurry.raphael basic tests
========================

Here are some basic tests for hurry.raphael.

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.raphael import raphael
  >>> needed = NeededInclusions()
  >>> needed.need(raphael)
  >>> print needed.render()
  <script type="text/javascript" src="http://localhost/static/raphael/raphael.js"></script>

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

"""
