def test_unit(self):
        measurement = VehicleSpeed(42, override_unit=True)
        try:
            eq_(measurement.value, 42)
        except __HOLE__:
            pass
        else:
            self.fail()
        eq_(measurement.value, measurement.unit(42))
dataset/ETHPy150Open openxc/openxc-python/tests/test_measurement.py/MeasurementTests.test_unit