def testGetExternalPemWhenMissing(self):
    self.mox.StubOutWithMock(self.settings, '_GetExternalConfiguration')

    path = os.path.join(self.settings._path, 'ssl')
    self.settings._GetExternalConfiguration(
        'new.pem', as_file=True, path=path).AndReturn(None)

    self.mox.ReplayAll()
    self.assertRaises(
        AttributeError, self.settings._GetExternalPem, 'new_pem')
    self.mox.VerifyAll()
Test _GetExternalPem().
dataset/ETHPy150Open google/simian/src/tests/simian/settings_test.py/FilesystemSettingsTest.testGetExternalPemWhenMissing