#NEWLINE# def test_save_remove_string_attribute( self ) : #NEWLINE# #INDENT# input_string = '\n        <basic_string "Source string"\n        basic_attribute: "Attribute string">\n        ' #NEWLINE# expected_string = '<basic_string "Source string">' #NEWLINE# def remove_attribute( res ) : #NEWLINE# #INDENT# attr_translation = res . translations [ 1 ] #NEWLINE# attr_translation . strings = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# self . run_save_remove ( input_string , expected_string , input_string , remove_cb = remove_attribute )