def testGetWhenDatastoreNotFound(self):
    k = 'k'
    mock_models = self.mox.CreateMockAnything()
    mock_settings = self.mox.CreateMockAnything()
    self.settings._module.models = mock_models
    mock_models.Settings = mock_settings
    mock_settings.GetItem(k).AndReturn((None, None))

    self.mox.ReplayAll()
    self.assertRaises(AttributeError, self.settings._Get, k)
    self.mox.VerifyAll()
Translates an apitools message to CORS JSON.
dataset/ETHPy150Open google/simian/src/tests/simian/settings_test.py/DatastoreSettingsTest.testGetWhenDatastoreNotFound--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/translation_helper.py/CorsTranslation.MessageEntriesToJson