collective.sharerizer
====================

Get a test browser.

  >>> from Products.Five.testbrowser import Browser
  >>> browser = Browser()

No special action in doc actions to begin with...

  >>> browser.open('http://nohost/plone')
  >>> "document-action-sharerizer" in browser.contents
  False

Let's configure it.

  >>> self.app.acl_users.userFolderAddUser('root', 'secret', ['Manager'], [])
  >>> browser.addHeader('Authorization', 'Basic root:secret')
  >>> browser.open('http://nohost/plone/@@sharerizer-controlpanel')
  >>> browser.getControl(name='form.code').value = "My Service's Code"
  >>> browser.getControl('Save').click()

  >>> browser.open('http://nohost/plone')

Now the action appears in document actions

  >>> "document-action-sharerizer" in browser.contents
  True

Furthermore, our pasted code is there too.

  >>> "My Service's Code" in browser.contents
  True
