#NEWLINE# def test_save_untranslated_attributes( self ) : #NEWLINE# #INDENT# "\n        Entity should be removed if it doesn't have translation and any of its\n        attributes arent't translated.\n        " #NEWLINE# input_string = '\n<first "First string"\nfirst_attr: "aaa"\n>\n<second "Second string"\nsecond_attr: "bbb"\n>\n        ' #NEWLINE# expected_string = '\n<second "Second string"\n  second_attr: "bbb"\n>\n        ' #NEWLINE# def change_resource( res ) : #NEWLINE# #INDENT# res . translations [ 0 ] . strings = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# res . translations [ 1 ] . strings = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# self . run_save_basic ( input_string , input_string , input_string , resource_cb = change_resource )