@mock.patch.multiple(systemconfig.SCPreferences,
                       GetPathValue=mock.DEFAULT, SetPathValue=mock.DEFAULT)
  @mock.patch.multiple(systemconfig, SCPreferencesCreate=mock.DEFAULT)
  def testSetProxyDisableProxy(self, **mocks):
    interfaces = {'interface':
                  {'Proxies':
                   {'ProxyAutoConfigEnable': 1,
                    'ProxyAutoConfigURLString': 'url'}}}
    mocks['GetPathValue'].return_value = interfaces
    scp = systemconfig.SCPreferences()
    self.assertEqual(None, scp.SetProxy(enable=False))
    self.assertEqual(
        0,
        interfaces['interface']['Proxies']['ProxyAutoConfigEnable'])
Inform the thread to shut down.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/systemconfig_test.py/SCPreferencesTest.testSetProxyDisableProxy--crossover with--dataset/ETHPy150Open felix-lang/fbuild/lib/fbuild/rpc.py/RPC.join