#NEWLINE# def test_insert_number_looking_fields( self ) : #NEWLINE# #INDENT# start_yaml = dedent ( '            a:\n              b: foo\n            ' ) #NEWLINE# intermediate = edit_yaml . set_module_field ( start_yaml , 'a' , 'c' , '5' ) #NEWLINE# new_yaml = edit_yaml . set_module_field ( intermediate , 'a' , 'd' , '.0' ) #NEWLINE# expected_yaml = ( start_yaml + '  c: "5"\n  d: ".0"\n' ) #NEWLINE# self . assertEqual ( expected_yaml , new_yaml ) #NEWLINE# self . assertDictEqual ( yaml . safe_load ( new_yaml ) , { #NEWLINE# #INDENT# 'a' : { #NEWLINE# #INDENT# 'b' : 'foo' , #NEWLINE# 'c' : '5' , #NEWLINE# 'd' : '.0' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } )