def test_updatedb(self): """ Test if it updates the locate database """ mock = MagicMock(return_value="") with patch.dict(locate.__salt__, {"cmd.run": mock}): self.assertListEqual(locate.updatedb(), [])
def test_updatedb(self): ''' Test if it updates the locate database ''' mock = MagicMock(return_value='') with patch.dict(locate.__salt__, {'cmd.run': mock}): self.assertListEqual(locate.updatedb(), [])