コード例 #1
0
ファイル: svn_test.py プロジェクト: bryson/salt
 def test_dirty(self):
     """
         Test to determine if the working directory has been changed.
     """
     mock = MagicMock(return_value=True)
     with patch.object(svn, "_fail", mock):
         self.assertTrue(svn.dirty("salt", "c://salt"))
コード例 #2
0
ファイル: test_svn.py プロジェクト: nicholasmhughes/salt
def test_dirty():
    """
    Test to determine if the working directory has been changed.
    """
    mock = MagicMock(return_value=True)
    with patch.object(svn, "_fail", mock):
        assert svn.dirty("salt", "c://salt")
コード例 #3
0
 def test_dirty(self):
     '''
         Test to determine if the working directory has been changed.
     '''
     mock = MagicMock(return_value=True)
     with patch.object(svn, '_fail', mock):
         self.assertTrue(svn.dirty("salt", "c://salt"))