Ejemplo n.º 1
0
 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))
Ejemplo n.º 2
0
 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))
Ejemplo n.º 3
0
 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))