def testIsAdminUserTrue(self):
    self.mox.StubOutWithMock(auth, '_GetGroupMembers')

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

    self.mox.ReplayAll()
    self.assertTrue(auth.IsAdminUser(admin_email))
    self.mox.VerifyAll()
Test IsAdminUser() with a passed email address that is an admin.
dataset/ETHPy150Open google/simian/src/tests/simian/mac/common/auth_test.py/AuthModuleTest.testIsAdminUserTrue