示例#1
0
文件: svn_test.py 项目: DaveQB/salt
 def test_status(self):
     '''
     Test to display the status of the current directory, files, or
     directories in the Subversion repository
     '''
     mock = MagicMock(return_value={'retcode': 0, 'stdout': True})
     with patch.dict(svn.__salt__, {'cmd.run_all': mock}):
         self.assertTrue(svn.status('cwd'))
示例#2
0
 def test_status(self):
     '''
     Test to display the status of the current directory, files, or
     directories in the Subversion repository
     '''
     mock = MagicMock(return_value={'retcode': 0, 'stdout': True})
     with patch.dict(svn.__salt__, {'cmd.run_all': mock}):
         self.assertTrue(svn.status('cwd'))
示例#3
0
 def test_status(self):
     """
     Test to display the status of the current directory, files, or
     directories in the Subversion repository
     """
     mock = MagicMock(return_value={"retcode": 0, "stdout": True})
     with patch.dict(svn.__salt__, {"cmd.run_all": mock}):
         self.assertTrue(svn.status("cwd"))