@mock.patch.object(systemconfig, 'SCDynamicPreferences', autospec=True)
  @mock.patch.object(systemconfig, 'logging')
  def testConfigureSystemProxyFailure(self, mock_logging, mock_scdp):
    proxy = 'proxy'
    enable = True
    mock_scdp().SetProxy.return_value = False
    self.assertEqual(None, systemconfig.ConfigureSystemProxy(proxy, enable))
    self.assertTrue(mock_logging.error.called)
Test ConfigureSystemProxy failure.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/systemconfig_test.py/SysconfigModuleTest.testConfigureSystemProxyFailure