#NEWLINE# def test_save_hash_with_attribute( self ) : #NEWLINE# #INDENT# input_string = dedent ( '\n        <basic_hash {\n            one: "One string",\n            other: "Other string"\n        }\n        first_attribute: "First attribute">\n        ' ) #NEWLINE# expected_string = '\n<basic_hash {\n  one: "One string",\n  other: "Other string"\n}\n  first_attribute: "Translated attribute"\n>' #NEWLINE# def change_resource( res ) : #NEWLINE# #INDENT# translation = res . translations [ 1 ] #NEWLINE# translation . strings [ None ] = 'Translated attribute' #NEWLINE# #UNINDENT# self . run_save_basic ( input_string , expected_string , source_string = expected_string , resource_cb = change_resource )