def test_vg_absent(self):
        name = '/dev/sda5'

        comt = ('Volume Group {0} already absent'.format(name))

        ret = {'name': name,
               'changes': {},
               'result': True,
               'comment': comt}

        mock = MagicMock(side_effect=[False, True])
        with patch.dict(lvm.__salt__, {'lvm.vgdisplay': mock}):
            self.assertDictEqual(lvm.vg_absent(name), ret)

            comt = ('Volume Group {0} is set to be removed'.format(name))
            ret.update({'comment': comt, 'result': None})
            with patch.dict(lvm.__opts__, {'test': True}):
                self.assertDictEqual(lvm.vg_absent(name), ret)

    # 'lv_present' function tests: 1
Overrides the UserDict.__setitem__ method in order to validate
dataset/ETHPy150Open saltstack/salt/tests/unit/states/lvm_test.py/LvmTestCase.test_vg_absent--crossover with--dataset/ETHPy150Open Axelrod-Python/Axelrod/axelrod/deterministic_cache.py/DeterministicCache.__setitem__