def test_assign_value(self):
        measurement = VehicleSpeed(42, override_unit=True)
        new_value = VehicleSpeed.unit(42)

        try:
            measurement.value = 24
        except __HOLE__:
            eq_(measurement.value, new_value)
        else:
            self.fail()

        measurement.value = new_value
        eq_(measurement.value, new_value)
dataset/ETHPy150Open openxc/openxc-python/tests/test_measurement.py/MeasurementTests.test_assign_value