#NEWLINE# def assert_repr( obj , repr_string , python2_repr_string = None ) : #NEWLINE# #INDENT# if ( ( version_info >= ( 3 , ) ) or ( python2_repr_string is None ) ) : #NEWLINE# #INDENT# assert ( repr ( obj ) == repr_string ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert ( repr ( obj ) == python2_repr_string )