#NEWLINE# @ mock . patch ( 'swift.account.auditor.AccountBroker' , FakeAccountBroker ) #NEWLINE# def test_one_audit_pass( self ) : #NEWLINE# #INDENT# conf = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# test_auditor = auditor . AccountAuditor ( conf , logger = conf . logger ) #NEWLINE# def fake_audit_location_generator( * args , **kwargs ) : #NEWLINE# #INDENT# files = os . listdir ( self . testdir ) #NEWLINE# return [ ( os . path . join ( self . testdir , f ) , '' , '' ) for f in files ] #NEWLINE# #UNINDENT# test_auditor . logging_interval = 0 #NEWLINE# with mock . patch ( 'swift.account.auditor.audit_location_generator' , fake_audit_location_generator ) : #NEWLINE# #INDENT# test_auditor . _one_audit_pass ( test_auditor . logging_interval ) #NEWLINE# #UNINDENT# self . assertEqual ( test_auditor . account_failures , 0 ) #NEWLINE# self . assertEqual ( test_auditor . account_passes , 0 )