Changeset 51f14603 in sasview for test


Ignore:
Timestamp:
Apr 3, 2014 11:37:53 AM (6 years ago)
Author:
Peter Parker
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.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
2f2d9d0
Parents:
eea3ffa
Message:

Refs #202 - Fix Sphinx build errors (not including park-1.2.1/). Most warnings remain.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/sansmodels/test/utest_newstylemodels.py

    r5777106 r51f14603  
    6363            print self.model.other 
    6464        self.assertRaises(AttributeError, setother) 
    65          
    66 class TestAdaptor(unittest.TestCase): 
    67     """ 
    68         Testing C++ Cylinder model 
    69     """ 
    70     def setUp(self): 
    71         from sans.models.NewCylinderModel import CylinderModel 
    72         self.model = CylinderModel() 
    73          
    74          
    75     def test_setparam(self): 
    76         self.model.setParam("length", 151.0) 
    77         self.assertEquals(self.model.getParam("length"), 151.0) 
    78          
    79          
    80          
    81         print self.model(0.001) 
    82         print self.model.parameters['length'] 
    83         self.model.setParam("length", 250.0) 
    84         self.assertEquals(self.model.getParam("length"), 250.0) 
    85          
    86         print self.model.parameters['length'] 
    87         print self.model(0.001) 
    88          
    89      
    9065   
    9166if __name__ == '__main__': 
Note: See TracChangeset for help on using the changeset viewer.