#NEWLINE# @ patch ( '__builtin__.open' ) #NEWLINE# @ patch ( 'os.access' , Mock ( return_value = False ) ) #NEWLINE# @ patch . object ( Collector , 'publish' ) #NEWLINE# def test_recon_no_access( self , publish_mock , open_mock ) : #NEWLINE# #INDENT# self . assertFalse ( open_mock . called ) #NEWLINE# self . assertFalse ( open_mock . called )