#NEWLINE# def test_get_data_dir( self , ext_data ) : #NEWLINE# #INDENT# core_data_dir = '/tmp' #NEWLINE# config = { #NEWLINE# #INDENT# 'core' : { #NEWLINE# #INDENT# 'data_dir' : core_data_dir , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# extension = ext_data . extension #NEWLINE# with mock . patch . object ( ext . path , 'get_or_create_dir' ) : #NEWLINE# #INDENT# data_dir = extension . get_data_dir ( config ) #NEWLINE# #UNINDENT# expected = os . path . join ( core_data_dir , config . ext_name ) #NEWLINE# assert ( data_dir == expected )