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"))
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")
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"))