Changeset ecc5d043 in sasview for src/sas/qtgui/Perspectives/Fitting/UnitTesting
- Timestamp:
- Nov 16, 2018 5:05:20 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 09e0c32
- Parents:
- baeac95
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/UnitTesting/ComplexConstraintTest.py
r2eeda93 recc5d043 132 132 """ 133 133 # default data 134 self.assertEqual(self.widget.constraint(), ('M1', 'scale', '=', 'M1.scale')) 134 c = self.widget.constraint() 135 self.assertEqual(c[0], 'M1') 136 self.assertEqual(c[1].func, 'M1.scale') 135 137 136 138 # Change parameter and operand 137 139 self.widget.cbOperator.setCurrentIndex(3) 138 self.widget.cbParam1.setCurrentIndex(3) 139 self.assertEqual(self.widget.constraint(), ('M1', 'bjerrum_length', '>=', 'M1.scale')) 140 self.widget.cbParam2.setCurrentIndex(3) 141 c = self.widget.constraint() 142 self.assertEqual(c[0], 'M1') 143 self.assertEqual(c[1].func, 'M1.sld_solvent') 144 self.assertEqual(c[1].operator, '>=') 140 145 141 146 def testOnHelp(self):
Note: See TracChangeset
for help on using the changeset viewer.