#NEWLINE# @ mock . patch ( 'rally.task.types.open' , side_effect = mock . mock_open ( read_data = 'file_context' ) , create = True ) #NEWLINE# def test_transform_by_path( self , mock_open ) : #NEWLINE# #INDENT# resource_config = [ 'file.yaml' ] #NEWLINE# file_context = types . FileTypeDict . transform ( clients = None , resource_config = resource_config ) #NEWLINE# self . assertEqual ( file_context , { #NEWLINE# #INDENT# 'file.yaml' : 'file_context' , #NEWLINE# #UNINDENT# } )