'Verify that the decorator wraps the original function'

def test_wrapping(self):

    @self.decorator
    def myfunc(request):
        'docs'
        pass
    self.assertEqual(myfunc.__doc__, 'docs')
    self.assertEqual(myfunc.__name__, 'myfunc')
    @self.decorator()
    def myfunc2(request):
        'docs2'
        pass
    self.assertEqual(myfunc2.__doc__, 'docs2')
    self.assertEqual(myfunc2.__name__, 'myfunc2')
