def METHOD_NAME(self):
    pulse = self.to_test_constructor(measurements=[('mw', 0, 5), ('H', 'a', 'b')])
    with self.assertRaises(KeyError):
        pulse.get_measurement_windows(parameters=dict(), measurement_mapping=dict())
    windows = pulse.get_measurement_windows(parameters=dict(a=0.5, b=1), measurement_mapping={'mw': 'asd', 'H': 'H'})
    self.assertEqual([('asd', 0, 5), ('H', 0.5, 1)], windows)
    self.assertEqual(pulse.measurement_declarations, [('mw', 0, 5), ('H', 'a', 'b')])