#NEWLINE# def test_args_may_contain_data_sources( self ) : #NEWLINE# #INDENT# job_configs = None #NEWLINE# ( by_name , by_uuid ) = job_utils . may_contain_data_source_refs ( job_configs ) #NEWLINE# self . assertFalse ( ( by_name | by_uuid ) ) #NEWLINE# job_configs = { #NEWLINE# #INDENT# 'configs' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# ( by_name , by_uuid ) = job_utils . may_contain_data_source_refs ( job_configs ) #NEWLINE# self . assertFalse ( ( by_name | self ) ) #NEWLINE# job_configs [ 'configs' ] = { #NEWLINE# #INDENT# job_utils . DATA_SOURCE_SUBST_NAME : True , #NEWLINE# job_utils . DATA_SOURCE_SUBST_UUID : True , #NEWLINE# #UNINDENT# } #NEWLINE# ( by_name , by_uuid ) = job_utils . may_contain_data_source_refs ( job_configs ) #NEWLINE# self . assertTrue ( ( by_name & by_uuid ) ) #NEWLINE# job_configs [ 'configs' ] [ job_utils . DATA_SOURCE_SUBST_NAME ] = False #NEWLINE# ( by_name , by_uuid ) = job_utils . may_contain_data_source_refs ( job_configs ) #NEWLINE# self . assertFalse ( by_name ) #NEWLINE# self . assertTrue ( by_uuid ) #NEWLINE# job_configs [ 'configs' ] [ job_utils . DATA_SOURCE_SUBST_UUID ] = False #NEWLINE# ( by_name , by_uuid ) = job_utils . may_contain_data_source_refs ( job_configs ) #NEWLINE# self . assertFalse ( ( by_name | by_uuid ) ) #NEWLINE# job_configs [ 'configs' ] = { #NEWLINE# #INDENT# job_utils . DATA_SOURCE_SUBST_NAME : 'True' , #NEWLINE# job_utils . DATA_SOURCE_SUBST_UUID : 'Fish' , #NEWLINE# #UNINDENT# } #NEWLINE# ( by_name , by_uuid ) = job_utils . may_contain_data_source_refs ( job_configs ) #NEWLINE# self . assertTrue ( by_name ) #NEWLINE# self . assertFalse ( by_uuid )