@mock.patch.multiple(systemconfig.SCPreferences,
                       GetPathValue=mock.DEFAULT, SetPathValue=mock.DEFAULT)
  @mock.patch.multiple(systemconfig, SCPreferencesCreate=mock.DEFAULT)
  def testSetProxy(self, **mocks):
    interfaces = {'interface':
                  {'Proxies':
                   {'ProxyAutoConfigEnable': 0,
                    'ProxyAutoConfigURLString': 'url'}}}
    mocks['GetPathValue'].return_value = interfaces
    interfaces['interface']['ProxyAutoConfigEnable'] = 1
    interfaces['interface']['ProxyAutoConfigURLString'] = (
        systemconfig.CORP_PROXY)
    scp = systemconfig.SCPreferences()
    self.assertEqual(None, scp.SetProxy())
    self.assertEqual(
        1, interfaces['interface']['Proxies']['ProxyAutoConfigEnable'])
    self.assertEqual(
        systemconfig.CORP_PROXY,
        interfaces['interface']['Proxies']['ProxyAutoConfigURLString'])
Suggested implementation:
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/systemconfig_test.py/SCPreferencesTest.testSetProxy--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/userreports/tests/test_choice_provider.py/ChoiceProviderTestMixin.test_query_search