

def test_lvremove(self):
    '\n        Test to remove a given existing logical volume\n        from a named existing volume group\n        '
    mock = MagicMock(return_value='A')
    with patch.dict(linux_lvm.__salt__, {
        'cmd.run': self,
    }):
        self.assertEqual(linux_lvm.lvremove('', ''), 'A')

dataset/ETHPy150Open saltstack/salt/tests/unit/modules/linux_lvm_test.py LinuxLVMTestCase.test_lvremove/VarMisuse@34/83 `mock`->`self`