@mock.patch.multiple(
      systemconfig, SCPreferencesCreate=mock.DEFAULT,
      SCPreferencesCommitChanges=mock.DEFAULT,
      SCPreferencesApplyChanges=mock.DEFAULT)
  def testSave(self, **mocks):
    mocks['SCPreferencesCreate'].return_value = 'session'
    mocks['SCPreferencesCommitChanges'].return_value = True
    mocks['SCPreferencesApplyChanges'].return_value = True
    scp = systemconfig.SCPreferences()
    self.assertEqual(None, scp.Save())
Test SCPreferences Save success.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/systemconfig_test.py/SCPreferencesTest.testSave