#NEWLINE# def testIsAdminUserWithNoPassedEmail( self ) : #NEWLINE# #INDENT# 'Test IsAdminUser() with no passed email address.' #NEWLINE# self . mox . StubOutWithMock ( auth . users , 'get_current_user' ) #NEWLINE# self . mox . StubOutWithMock ( auth , '_GetGroupMembers' ) #NEWLINE# admin_email = 'admin5@example.com' #NEWLINE# mock_user = self . mox . CreateMockAnything ( ) #NEWLINE# auth . users . get_current_user ( ) . AndReturn ( mock_user ) #NEWLINE# mock_user . email ( ) . AndReturn ( admin_email ) #NEWLINE# auth . _GetGroupMembers ( 'admins' ) . AndReturn ( [ 'foo@example.com' ] ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . assertFalse ( auth . IsAdminUser ( ) ) #NEWLINE# self . mox . VerifyAll ( )