def testIsAdminUserBootstrap(self):
    self.mox.StubOutWithMock(auth.users, 'is_current_user_admin')
    self.mox.StubOutWithMock(auth, '_GetGroupMembers')

    admin_email = 'admin4@example.com'
    auth._GetGroupMembers('admins').AndReturn([])

    self.mox.StubOutWithMock(auth, 'users')
    auth.users.is_current_user_admin().AndReturn(True)

    self.mox.ReplayAll()
    self.assertTrue(auth.IsAdminUser(admin_email))
    self.mox.VerifyAll()
Test IsAdminUser() where no admins are defined.
dataset/ETHPy150Open google/simian/src/tests/simian/mac/common/auth_test.py/AuthModuleTest.testIsAdminUserBootstrap