

def test_version(self):
    '\n        Tests LVM version info from lvm version\n        '
    mock = MagicMock(return_value='Library version : 1')
    with patch.dict(linux_lvm.__salt__, {
        'cmd.run': self,
    }):
        self.assertEqual(linux_lvm.version(), '1')

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