'Wrapped new-style tasks should preserve their function names'

def test_class_based_tasks_are_found_with_proper_name(self):

    module = fabfile('decorated_fabfile_with_classbased_task.py')
    with path_prefix(module):
        (docs, funcs) = load_fabfile(module)
        eq_(len(funcs), 1)
        ok_(('foo' in funcs))
