def _maybeGlobalReactor(maybeReactor):
    if maybeReactor is None:
        from twisted.internet import reactor
        return reactor
    else:
        return maybeReactor
Setup mocks to simulate Apiary users service exported by the Admin SDK.
dataset/ETHPy150Open twisted/twisted/twisted/application/internet.py/_maybeGlobalReactor--crossover with--dataset/ETHPy150Open google/gfw-toolkit/toolkit/tests/directory_api_users_test_base.py/DirectoryApiUsersTestBase.setUp