def test_resize_map_failed(fake_multipathd): fake_multipathd.write(MULTIPATHD_SCRIPT.format("fail")) with pytest.raises(multipath.Error): multipath.resize_map("fake_device")
def multipath_resize_map(name): return multipath.resize_map(name)
def test_resize_map(fake_multipathd): fake_multipathd.write(MULTIPATHD_SCRIPT.format("ok")) multipath.resize_map("fake_device")