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(), [])
Exemple #2
0
 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(), [])
Exemple #3
0
 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(), [])