#NEWLINE# def assertFlavorInList( self , flav , flavlist ) : #NEWLINE# #INDENT# for item in flavlist [ 'flavors' ] : #NEWLINE# #INDENT# if ( flav [ 'id' ] == item [ 'id' ] ) : #NEWLINE# #INDENT# self . assertEqual ( flav [ 'name' ] , item [ 'name' ] ) #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# self . fail ( ( '%s not found in %s' % ( flav , item ) ) )