Action test
===========

Set correct types::

  >>> from iw.subscriber import interfaces
  >>> sm = zope.component.getSiteManager(portal)
  >>> utility = sm.getUtility(interfaces.ISubscriberUtility)
  >>> utility.subscribed_types = ['Folder', 'Document', 'Large Plone Folder']

Plone site::

  >>> browser.open(portal.absolute_url()+'/show_subscribed_action')
  >>> print browser.contents

Document::

  >>> browser.open(portal.absolute_url()+'/front-page/show_subscribed_action')
  >>> print browser.contents
  True


Actions presence
================

Test presence in folder listing::

  >>> browser.open(portal.absolute_url()+'/Members/folder_listing')
  >>> print browser.contents
  <!DOCTYPE ...
  ...id="document-action-subscribe"...
  ...id="document-action-unsubscribe"...

Test presence in document view::

  >>> browser.open(portal.absolute_url()+'/front-page/view')
  >>> print browser.contents
  <!DOCTYPE ...
  ...id="document-action-subscribe"...
  ...id="document-action-unsubscribe"...

Test non presence in plone site::

  >>> browser.open(portal.absolute_url()+'/folder_listing')
  >>> 'document-action-subscribe' not in browser.contents
  True

  
