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

    self.mox.StubOutWithMock(self.settings, '_Set')
    globals_ = self.mox.CreateMockAnything()

    globals_().AndReturn(global_vars)
    globals_().AndReturn(global_vars)
    globals_().AndReturn(global_vars)
    self.settings._Set('foo', 1)

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