#NEWLINE# def HasFlag( self , flag_type ) : #NEWLINE# #INDENT# 'Test if the given flag has been set.\n\n    Args:\n      flag_type: The type of the flag to check.\n\n    Returns:\n      True if the flag is set.\n    ' #NEWLINE# for flag in self . __flags : #NEWLINE# #INDENT# if ( flag . flag_type == flag_type ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False