mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
cosmetic change.
This commit is contained in:
parent
cf501cf60d
commit
31889e38eb
1 changed files with 2 additions and 4 deletions
|
@ -40,15 +40,13 @@ class RabbitmqVhostTestCase(TestCase):
|
|||
|
||||
ret = {'name': name,
|
||||
'changes': {},
|
||||
'result': True,
|
||||
'comment': ''}
|
||||
'result': None,
|
||||
'comment': 'Creating VHost virtual_host'}
|
||||
|
||||
mock = MagicMock(return_value=False)
|
||||
with patch.dict(rabbitmq_vhost.__salt__,
|
||||
{'rabbitmq.vhost_exists': mock}):
|
||||
with patch.dict(rabbitmq_vhost.__opts__, {'test': True}):
|
||||
comt = ('Creating VHost virtual_host')
|
||||
ret.update({'comment': comt, 'result': None})
|
||||
self.assertDictEqual(rabbitmq_vhost.present(name), ret)
|
||||
|
||||
# 'absent' function tests: 1
|
||||
|
|
Loading…
Add table
Reference in a new issue