Ignore:
Timestamp:
Mar 28, 2017 6:53:29 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
0268aed
Parents:
a9b568c
Message:

Chi2 display + minor refactoring

File:
1 edited

Legend:

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

    r351b53e r6fd4e36  
    104104                        data, False, None) 
    105105 
    106         self.logic.new1DPlot(return_data=return_data) 
     106        new_plot = self.logic.new1DPlot(return_data=return_data) 
    107107 
    108         self.assertIsInstance(self.logic.data, Data1D) 
    109         self.assertFalse(self.logic.data.is_data) 
    110         self.assertEqual(self.logic.data.dy.size, 3) 
    111         self.assertEqual(self.logic.data.title, "boop") 
    112         self.assertEqual(self.logic.data.name, "boop [boop]") 
     108        self.assertIsInstance(new_plot, Data1D) 
     109        self.assertFalse(new_plot.is_data) 
     110        self.assertEqual(new_plot.dy.size, 3) 
     111        self.assertEqual(new_plot.title, "boop") 
     112        self.assertEqual(new_plot.name, "boop [boop]") 
    113113 
    114114    def testNew2DPlot(self): 
     
    142142                        0.1, False, None) 
    143143 
    144         self.logic.new2DPlot(return_data=return_data) 
     144        new_plot = self.logic.new2DPlot(return_data=return_data) 
    145145 
    146         self.assertIsInstance(self.logic.data, Data2D) 
    147         self.assertFalse(self.logic.data.is_data) 
    148         self.assertEqual(self.logic.data.title, "Analytical model 2D ") 
    149         self.assertEqual(self.logic.data.name, "boop [boop]") 
     146        self.assertIsInstance(new_plot, Data2D) 
     147        self.assertFalse(new_plot.is_data) 
     148        self.assertEqual(new_plot.title, "Analytical model 2D ") 
     149        self.assertEqual(new_plot.name, "boop [boop]") 
    150150 
    151151 
Note: See TracChangeset for help on using the changeset viewer.