def test_that_raises_when_lower_wavelength_is_smaller_than_high_wavelength(
         self):
     state = StateWavelength()
     state.wavelength_low = [2.]
     state.wavelength_high = [1.]
     state.wavelength_step = 2.
     with self.assertRaises(ValueError):
         state.validate()
    def test_that_raises_when_wavelength_entry_is_missing(self):
        # Arrange
        state = StateWavelength()
        with self.assertRaises(ValueError):
            state.validate()

        state.wavelength_low = [1.]
        with self.assertRaises(ValueError):
            state.validate()

        state.wavelength_high = [2.]
        with self.assertRaises(ValueError):
            state.validate()

        state.wavelength_step = 2.
        self.assertIsNone(state.validate())