Fix test failures

This commit is contained in:
rallytime 2016-01-25 12:08:30 -07:00
parent 6fa7bc3350
commit 3f8b905642

View File

@ -39,9 +39,9 @@ class RabbitmqVhostTestCase(TestCase):
name = 'virtual_host'
ret = {'name': name,
'changes': {},
'changes': {'new': 'virtual_host', 'old': ''},
'result': None,
'comment': 'Creating VHost virtual_host'}
'comment': 'Virtual Host \'virtual_host\' will be created.'}
mock = MagicMock(return_value=False)
with patch.dict(rabbitmq_vhost.__salt__,
@ -60,7 +60,7 @@ class RabbitmqVhostTestCase(TestCase):
ret = {'name': name,
'changes': {},
'result': True,
'comment': 'Virtual Host {0} is not present'.format(name)}
'comment': 'Virtual Host \'{0}\' is not present.'.format(name)}
mock = MagicMock(return_value=False)
with patch.dict(rabbitmq_vhost.__salt__,