def test_set_disk_timeout(self):
        mock = MagicMock(return_value="")
        with patch.dict(powercfg.__salt__, {'cmd.run': mock}):
            powercfg.set_disk_timeout(0, "dc")
            mock.assert_called_once_with('powercfg /x disk-timeout-dc 0', python_shell=False)
Validates that 'value' is an instance of `basestring` for Python 2
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/win_powercfg_test.py/PowerCfgTestCase.test_set_disk_timeout--crossover with--dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/common.py/validate_string