def test_add(self): ''' Test to add files to be tracked by the Subversion working-copy checkout ''' mock = MagicMock(return_value={'retcode': 0, 'stdout': True}) with patch.dict(svn.__salt__, {'cmd.run_all': mock}): self.assertTrue(svn.add('cwd', False))
def test_add(self): """ Test to add files to be tracked by the Subversion working-copy checkout """ mock = MagicMock(return_value={"retcode": 0, "stdout": True}) with patch.dict(svn.__salt__, {"cmd.run_all": mock}): self.assertTrue(svn.add("cwd", False))