#NEWLINE# def testShowsClientTwiceIfTwoApprovalsWereRequested( self ) : #NEWLINE# #INDENT# with self . ACLChecksDisabled ( ) : #NEWLINE# #INDENT# client_id = self . SetupClients ( 1 ) [ 0 ] #NEWLINE# self . RequestAndGrantClientApproval ( client_id , token = access_control . ACLToken ( username = 'test' , reason = 'foo-reason' ) ) #NEWLINE# self . RequestAndGrantClientApproval ( client_id , token = access_control . ACLToken ( username = 'test' , reason = 'bar-reason' ) ) #NEWLINE# #UNINDENT# self . Open ( '/' ) #NEWLINE# self . WaitUntil ( self . IsElementPresent , "css=grr-user-dashboard div[name=RecentlyAccessedClients]:contains('foo-reason')" ) #NEWLINE# self . WaitUntil ( self . IsElementPresent , "css=grr-user-dashboard div[name=RecentlyAccessedClients]:contains('bar-reason')" )