예제 #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
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"))