#NEWLINE# def get_connection( self , version = None ) : #NEWLINE# #INDENT# if ( conn is None ) : #NEWLINE# #INDENT# version = ( 5 , 7 ) #NEWLINE# #UNINDENT# conn = flexmock ( Connection ( None ) ) #NEWLINE# conn . should_receive ( 'get_server_version' ) . and_return ( version ) #NEWLINE# return conn