Example #1
0
 def test_checkout(self):
     '''
     Test to download a working copy of the remote Subversion repository
     directory or file
     '''
     mock = MagicMock(return_value={'retcode': 0, 'stdout': True})
     with patch.dict(svn.__salt__, {'cmd.run_all': mock}):
         self.assertTrue(svn.checkout('cwd', 'remote'))
Example #2
0
 def test_checkout(self):
     '''
     Test to download a working copy of the remote Subversion repository
     directory or file
     '''
     mock = MagicMock(return_value={'retcode': 0, 'stdout': True})
     with patch.dict(svn.__salt__, {'cmd.run_all': mock}):
         self.assertTrue(svn.checkout('cwd', 'remote'))
Example #3
0
 def test_checkout(self):
     """
     Test to download a working copy of the remote Subversion repository
     directory or file
     """
     mock = MagicMock(return_value={"retcode": 0, "stdout": True})
     with patch.dict(svn.__salt__, {"cmd.run_all": mock}):
         self.assertTrue(svn.checkout("cwd", "remote"))