def test_lock(self):
        mock = MagicMock(return_value={'retcode': 0})
        with patch.dict(mac_desktop.__salt__, {'cmd.run_all': mock}):
            self.assertTrue(mac_desktop.lock())
od.__setitem__(i, y) <==> od[i]=y
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/mac_desktop_test.py/MacDesktopTestCase.test_lock--crossover with--dataset/ETHPy150Open saltstack/salt/salt/utils/odict.py/OrderedDict.__setitem__