

def test_lvresize(self):
    '\n        Test to return information about the logical volume(s)\n        '
    mock = MagicMock(return_value={
        'retcode': 1,
    })
    with patch.dict(linux_lvm.__salt__, {
        'cmd.run_all': mock,
    }):
        self.assertDictEqual(linux_lvm.lvresize(1, 'a'), {
            
        })
    mock = MagicMock(return_value={
        'retcode': 0,
    })
    with patch.dict(linux_lvm.__salt__, {
        'cmd.run_all': mock,
    }):
        self.assertDictEqual(linux_lvm.lvresize(1, 'a'), {
            
        })

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