'__details__() should print docstr for method with any number and order of decorations'

def test_decorated_task(self):

    expected = '\n'.join(['Docstring', 'Arguments:    arg1'])
    @task
    def decorated_task(arg1):
        'Docstring'
    actual = decorated_task.__details__()
    eq_(expected, actual)
    @runs_once
    @task
    def decorated_task1(arg1):
        'Docstring'
    actual = decorated_task1.__details__()
    eq_(expected, actual)
    @runs_once
    @serial
    @task
    def decorated_task2(arg1):
        'Docstring'
    actual = decorated_task2.__details__()
    eq_(expected, actual)
