hurry.datalink basic tests
=======================================

Here are some basic tests for hurry.datalink.

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.resource import register_plugin
  >>> register_plugin(Plugin())

Render the inclusion::

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

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