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)
Get floating IP by id.
dataset/ETHPy150Open saltstack/salt/tests/unit/states/rabbitmq_vhost_test.py/RabbitmqVhostTestCase.test_absent--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/network/base_api.py/NetworkAPI.get_floating_ip