#NEWLINE# def test_class_based_tasks_are_found_with_variable_name( self ) : #NEWLINE# #INDENT# '\n        A new-style tasks with undefined name attribute should use the instance\n        variable name.\n        ' #NEWLINE# module = fabfile ( 'classbased_task_fabfile.py' ) #NEWLINE# from fabric.state import env #NEWLINE# with path_prefix ( module ) : #NEWLINE# #INDENT# ( docs , funcs ) = load_fabfile ( module ) #NEWLINE# eq_ ( len ( funcs ) , 1 ) #NEWLINE# ok_ ( ( 'foo' in funcs ) ) #NEWLINE# eq_ ( funcs [ 'foo' ] . name , 'foo' )