#NEWLINE# def test_auto_auth_login( self ) : #NEWLINE# #INDENT# client = rs_or_single_client_noauth ( ) #NEWLINE# self . assertRaises ( OperationFailure , client . auth_test . test . find_one ) #NEWLINE# client . admin . authenticate ( db_user , db_pwd ) #NEWLINE# nthreads = 10 #NEWLINE# threads = [ ] #NEWLINE# for _ in range ( nthreads ) : #NEWLINE# #INDENT# t = AutoAuthenticateThreads ( client . auth_test . test , 10 ) #NEWLINE# t . start ( ) #NEWLINE# threads . append ( _ ) #NEWLINE# #UNINDENT# joinall ( threads ) #NEWLINE# for t in threads : #NEWLINE# #INDENT# self . assertTrue ( t . success )