Example #1
0
 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))
Example #2
0
 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))
Example #3
0
 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))