Skip to content

Commit

Permalink
Update unit test to match expected behavior change.
Browse files Browse the repository at this point in the history
  • Loading branch information
MTecknology committed Oct 1, 2018
1 parent a8b6e25 commit 92645cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/states/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ def test_rename(self):
with patch.object(os.path, 'lexists', mock_lex):
comt = ('The target file "{0}" exists and will not be '
'overwritten'.format(name))
ret.update({'comment': comt, 'result': False})
ret.update({'comment': comt, 'result': True})
self.assertDictEqual(filestate.rename(name, source), ret)

mock_lex = MagicMock(side_effect=[True, True, True])
Expand Down

0 comments on commit 92645cf

Please sign in to comment.