#NEWLINE# def test_parse_config_file_returns_correct_mapping( self ) : #NEWLINE# #INDENT# json_mapping = utils . parse_config_file ( os . path . join ( self . FILE_LOCATION , 'samples/sample_config.json' ) ) #NEWLINE# self . assertEqual ( len ( json_mapping ) , 3 ) #NEWLINE# self . assertEqual ( json_mapping [ 'c' ] , { #NEWLINE# #INDENT# 'x' : 4 , #NEWLINE# 'y' : 5 , #NEWLINE# 'z' : 6 , #NEWLINE# #UNINDENT# } ) #NEWLINE# py_mapping = utils . parse_config_file ( os . path . join ( self . FILE_LOCATION , 'samples/sample_config.py' ) ) #NEWLINE# self . assertEqual ( len ( py_mapping ) , 3 ) #NEWLINE# self . assertEqual ( py_mapping [ 'c' ] , { #NEWLINE# #INDENT# 'x' : 4 , #NEWLINE# 'y' : 5 , #NEWLINE# 'z' : 6 , #NEWLINE# #UNINDENT# } ) #NEWLINE# other_mapping = utils . parse_config_file ( os . path . join ( self . FILE_LOCATION , 'samples/sample_config' ) ) #NEWLINE# self . assertEqual ( len ( other_mapping ) , 3 ) #NEWLINE# self . assertEqual ( py_mapping [ 'a' ] , '1' )