@patch('salt.utils.is_windows', lambda: False)
    @patch('salt.utils.which',
           lambda exe: (
               exe == "parted"
               or
               exe == "lsblk"
               or
               exe == "partprobe"))
    def test_virtual(self):
        ret = parted.__virtual__()
        expect = 'partition'
        self.assertEqual(ret, expect)

    # Test probe function
Test grouping of period events including previous events (no grouping)
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/parted_test.py/PartedTestCase.test_virtual--crossover with--dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3timeplot.py/PeriodTestsNoGroups.testGroupingCumulative