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)
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)
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)
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)