@mock.patch.multiple(
      systemconfig, SCPreferencesCreate=mock.DEFAULT,
      SCPreferencesPathGetValue=mock.DEFAULT)
  @mock.patch.object(systemconfig.os, 'path', autospec=True)
  def testGetPathValue(self, mock_osp, **mocks):
    mocks['SCPreferencesCreate'].return_value = 'session'
    mock_osp.basename.return_value = 'path'
    mock_osp.dirname.return_value = '/some'
    mocks['SCPreferencesPathGetValue'].return_value = {'path': 'value'}
    scp = systemconfig.SCPreferences()
    self.assertEqual('value', scp.GetPathValue('/some/path'))
Test SCPreferences GetPathValue.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/systemconfig_test.py/SCPreferencesTest.testGetPathValue