def METHOD_NAME(self) -> None:
    pulse = self.to_test_constructor(measurements=[('mw', 1, '(1+length)/2')])
    parameters = dict(length=100)
    windows = pulse.get_measurement_windows(parameters, measurement_mapping={'mw': 'asd'})
    self.assertEqual(windows, [('asd', 1, 101 / 2)])
    self.assertEqual(pulse.measurement_declarations, [('mw', 1, '(1+length)/2')])