def test_mset_index_out_of_range(pvector): v = pvector([0, 1]) with pytest.raises(IndexError): v.mset(3, 10)
def test_mset_odd_number_of_arguments(pvector): v = pvector([0, 1]) with pytest.raises(TypeError): v.mset(0, 10, 1)