Exemple #1
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"))
Exemple #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")
Exemple #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"))