def test_absent(self):
        name = 'myqueue'

        ret = {'name': name,
               'changes': {},
               'result': True,
               'comment': 'Virtual Host \'{0}\' is not present.'.format(name)}

        mock = MagicMock(return_value=False)
        with patch.dict(rabbitmq_vhost.__salt__,
                        {'rabbitmq.vhost_exists': mock}):
            self.assertDictEqual(rabbitmq_vhost.absent(name), ret)
Test to ensure the named user is absent.
dataset/ETHPy150Open saltstack/salt/tests/unit/states/rabbitmq_vhost_test.py/RabbitmqVhostTestCase.test_absent