def test_t_from_nm_negative(self): # boundary condition: negative result = get_t_from_nm(-0.716) self.assertIsNotNone(result) self.assertAlmostEquals(result, -6.17588983)
def test_t_from_nm_zero(self): # boundary condition: 0 result = get_t_from_nm(0) self.assertIsNotNone(result) self.assertAlmostEquals(result, 0)
def get_t_from_nm(self, nm): """ Converts a nanometer value to a theta position""" return get_t_from_nm(nm, wavelength=self.wavelength)
def get_t_from_nm(self, nm): """ Converts a nanometer value to a theta position""" return get_t_from_nm(nm, wavelength=self.wavelength)
def test_t_from_nm_negative(self): # boundary condition: negative result = get_t_from_nm(-0.716) self.assertIsNotNone(result) self.assertAlmostEquals(result, -6.17588983)
def test_t_from_nm_zero(self): # boundary condition: 0 result = get_t_from_nm(0) self.assertIsNotNone(result) self.assertAlmostEquals(result, 0)