@mock.patch.multiple(systemconfig.SCPreferences, GetPathValue=mock.DEFAULT,
                       SetPathValue=mock.DEFAULT)
  @mock.patch.multiple(systemconfig, SCPreferencesCreate=mock.DEFAULT)
  def testSetLocalName(self, **mocks):
    mocks['GetPathValue'].return_value = 'localname'
    scp = systemconfig.SCPreferences()
    self.assertEqual(None, scp.SetComputerName('newname'))
    self.assertEqual(None, scp.SetComputerName('localname'))
    # Only called once from 'newname'
    self.assertEqual(1, mocks['SetPathValue'].call_count)
Wraps db.Query._get_query() and injects SearchableQuery.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/systemconfig_test.py/SCPreferencesTest.testSetLocalName--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/search/__init__.py/SearchableModel.Query._get_query