#NEWLINE# def is_string( self , obj ) : #NEWLINE# #INDENT# if ( sys . version_info [ 0 ] == 2 ) : #NEWLINE# #INDENT# self . assertTrue ( isinstance ( obj , unicode ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assertTrue ( isinstance ( obj , str ) )