#NEWLINE# def _model_find_by_name( self , model , name ) : #NEWLINE# #INDENT# res = self . _model_filter ( model , ( 'name = "%s"' % name ) ) #NEWLINE# self . assertEqual ( len ( res ) , 1 ) #NEWLINE# return res [ 0 ]