@patch('salt.utils.which', lambda exe: not exe == "parted")
    def test_virtual_bails_without_parted(self):
        ret = parted.__virtual__()
        err = (False, 'The parted execution module failed to load parted binary is not in the path.')
        self.assertEqual(err, ret)
If parted not in PATH, __virtual__ shouldn't register module
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/parted_test.py/PartedTestCase.test_virtual_bails_without_parted