'Decorating a function with L{user_documentation} sets the
C{user_documentation} attribute of the function to the passed
argument.'

def test_decoration(self):

    @user_documentation(u'Some    text', u'Header', u'section')
    def f():
        pass
    self.assertEqual(f.user_documentation, UserDocumentation(text=u'Some    text', header=u'Header', section=u'section', examples=pvector([])))
