def test_wipe(self): mock = MagicMock(return_value={'retcode': 0, 'stdout': ''}) with patch.dict(disk.__salt__, {'cmd.run_all': mock}): disk.wipe('/dev/sda') mock.assert_called_once_with( 'wipefs -a /dev/sda', python_shell=False )
def test_wipe(self): mock = MagicMock(return_value={'retcode': 0, 'stdout': ''}) with patch.dict(disk.__salt__, {'cmd.run_all': mock}): disk.wipe('/dev/sda') mock.assert_called_once_with( 'wipefs -a /dev/sda', python_shell=False )
def test_wipe(self): mock = MagicMock(return_value={"retcode": 0, "stdout": ""}) with patch.dict(disk.__salt__, {"cmd.run_all": mock}): disk.wipe("/dev/sda") mock.assert_called_once_with("wipefs -a /dev/sda", python_shell=False)