#NEWLINE# def testDoUserAuthAnyDomainUserSuccess( self ) : #NEWLINE# #INDENT# self . stubs . Set ( auth . settings , 'ALLOW_ALL_DOMAIN_USERS_READ_ACCESS' , True ) #NEWLINE# self . stubs . Set ( auth , 'users' , self . mox . CreateMock ( auth . users ) ) #NEWLINE# mock_user = self . mox . CreateMockAnything ( ) #NEWLINE# email = 'foouser@example.com' #NEWLINE# auth . users . get_current_user ( ) . AndReturn ( mock_user ) #NEWLINE# mock_user . email ( ) . AndReturn ( email ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . assertEqual ( mock_user , auth . DoUserAuth ( ) ) #NEWLINE# self . mox . VerifyAll ( )