def test_remove(self): ''' Test to remove files and directories from the Subversion repository ''' mock = MagicMock(return_value={'retcode': 0, 'stdout': True}) with patch.dict(svn.__salt__, {'cmd.run_all': mock}): self.assertTrue(svn.remove('cwd', False))
def test_remove(self): """ Test to remove files and directories from the Subversion repository """ mock = MagicMock(return_value={"retcode": 0, "stdout": True}) with patch.dict(svn.__salt__, {"cmd.run_all": mock}): self.assertTrue(svn.remove("cwd", False))