def testPopulateGlobalWithSetFunc(self):
    global_vars = {
        'FOO': 1,
        'bar': 2,
    }

    set_func = self.mox.CreateMockAnything()
    globals_ = self.mox.CreateMockAnything()

    globals_().AndReturn(global_vars)
    globals_().AndReturn(global_vars)
    globals_().AndReturn(global_vars)
    set_func('foo', 1)

    self.mox.ReplayAll()
    self.settings._PopulateGlobals(set_func=set_func, globals_=globals_)
    self.mox.VerifyAll()
Test _PopulateGlobals() with set_func.
dataset/ETHPy150Open google/simian/src/tests/simian/settings_test.py/BaseSettingsTest.testPopulateGlobalWithSetFunc