#NEWLINE# def test_string_conversion( self ) : #NEWLINE# #INDENT# for location in self . ordered_locations2 : #NEWLINE# #INDENT# expected = ( '%s:%s' % ( location . filename , location . line ) ) #NEWLINE# if ( location . line is None ) : #NEWLINE# #INDENT# expected = location . filename #NEWLINE# #UNINDENT# assert ( six . text_type ( location ) == expected )