Changeset cb62bd5 in sasview for test/pr_inversion/test/utest_invertor.py
- Timestamp:
- Aug 4, 2017 2:22:51 AM (7 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 1abd19c
- Parents:
- a0e6b1b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/pr_inversion/test/utest_invertor.py
raaf5e49 rcb62bd5 68 68 self.x_in[i] = 1.0*(i+1) 69 69 70 def test_ has_bck_flag(self):71 """ 72 Tests the has_bck flag operations73 """ 74 self.assertEqual(self.invertor. has_bck, False)75 self.invertor. has_bck=True76 self.assertEqual(self.invertor. has_bck, True)70 def test_est_bck_flag(self): 71 """ 72 Tests the est_bck flag operations 73 """ 74 self.assertEqual(self.invertor.est_bck, False) 75 self.invertor.est_bck=True 76 self.assertEqual(self.invertor.est_bck, True) 77 77 def doit_float(): 78 self.invertor. has_bck = 2.078 self.invertor.est_bck = 2.0 79 79 def doit_str(): 80 self.invertor. has_bck = 'a'80 self.invertor.est_bck = 'a' 81 81 82 82 self.assertRaises(ValueError, doit_float)
Note: See TracChangeset
for help on using the changeset viewer.