Ignore:
Timestamp:
Nov 16, 2018 5:05:20 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
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
Message:

Reworked the complex constraint functionality SASVIEW-1019

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/UnitTesting/ComplexConstraintTest.py

    r2eeda93 recc5d043  
    132132        """ 
    133133        # 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') 
    135137 
    136138        # Change parameter and operand 
    137139        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, '>=') 
    140145 
    141146    def testOnHelp(self): 
Note: See TracChangeset for help on using the changeset viewer.