

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

dataset/ETHPy150Open saltstack/salt/tests/unit/modules/linux_lvm_test.py LinuxLVMTestCase.test_fullversion/original