mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
tests/unit/states/eselect_test.py: remove raw string formatting
This commit is contained in:
parent
2d51f3d25b
commit
96c559d63e
@ -44,7 +44,7 @@ class EselectTestCase(TestCase):
|
|||||||
|
|
||||||
mock = MagicMock(return_value=target)
|
mock = MagicMock(return_value=target)
|
||||||
with patch.dict(eselect.__salt__, {'eselect.get_current_target': mock}):
|
with patch.dict(eselect.__salt__, {'eselect.get_current_target': mock}):
|
||||||
comt = ('Target {0!r} is already set on {1!r} module.'
|
comt = ('Target \'{0}\' is already set on \'{1}\' module.'
|
||||||
.format(target, name))
|
.format(target, name))
|
||||||
ret.update({'comment': comt})
|
ret.update({'comment': comt})
|
||||||
self.assertDictEqual(eselect.set_(name, target), ret)
|
self.assertDictEqual(eselect.set_(name, target), ret)
|
||||||
|
Loading…
Reference in New Issue
Block a user