#NEWLINE# def test_mkconfig_odict( self ) : #NEWLINE# #INDENT# with patch . dict ( seed . __opts__ , { #NEWLINE# #INDENT# 'master' : 'foo' , #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# ddd = salt . utils . odict . OrderedDict ( ) #NEWLINE# ddd [ 'b' ] = 'b' #NEWLINE# ddd [ 'a' ] = 'b' #NEWLINE# data = seed . mkconfig ( ddd , approve_key = False ) #NEWLINE# with open ( data [ 'config' ] ) as fic : #NEWLINE# #INDENT# fdata = fic . read ( ) #NEWLINE# self . assertEqual ( fdata , 'b: b\na: b\nmaster: foo\n' )