def test_delete(self): ''' Tests if the specified group was deleted ''' mock_ret = MagicMock(return_value={'retcode': 0}) with patch.dict(groupadd.__salt__, {'cmd.run_all': mock_ret}): self.assertTrue(groupadd.delete('test'))
def test_delete(self): """ Tests if the specified group was deleted """ mock_ret = MagicMock(return_value={"retcode": 0}) with patch.dict(groupadd.__salt__, {"cmd.run_all": mock_ret}): self.assertTrue(groupadd.delete("test"))