@mock.patch.multiple(systemconfig.SCPreferences, GetPathValue=mock.DEFAULT,
                       SetPathValue=mock.DEFAULT)
  @mock.patch.multiple(systemconfig, SCPreferencesCreate=mock.DEFAULT)
  def testSetComputerName(self, **mocks):
    mocks['GetPathValue'].return_value = 'computername'
    scp = systemconfig.SCPreferences()
    self.assertEqual(None, scp.SetComputerName('newname'))
    self.assertEqual(None, scp.SetComputerName('computername'))
    # Only called once from 'newname'
    self.assertEqual(1, mocks['SetPathValue'].call_count)
Merge dicts normalizing their keys.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/systemconfig_test.py/SCPreferencesTest.testSetComputerName--crossover with--dataset/ETHPy150Open ARM-software/workload-automation/wlauto/utils/misc.py/_merge_two_dicts