Exemple #1
0
 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.
     assert_validate_error(self, ValueError, state)
Exemple #2
0
 def test_that_raises_when_wavelength_entry_is_missing(self):
     # Arrange
     state = StateWavelength()
     assert_validate_error(self, ValueError, state)
     state.wavelength_low = 1.
     assert_validate_error(self, ValueError, state)
     state.wavelength_high = 2.
     assert_validate_error(self, ValueError, state)
     state.wavelength_step = 2.
     assert_raises_nothing(self, state)
Exemple #3
0
 def test_that_is_sans_state_data_object(self):
     state = StateWavelength()
     self.assertTrue(isinstance(state, StateWavelength))