- Timestamp:
- Apr 3, 2014 11:37:53 AM (11 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.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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sansmodels/test/utest_newstylemodels.py
r5777106 r51f14603 63 63 print self.model.other 64 64 self.assertRaises(AttributeError, setother) 65 66 class TestAdaptor(unittest.TestCase):67 """68 Testing C++ Cylinder model69 """70 def setUp(self):71 from sans.models.NewCylinderModel import CylinderModel72 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 90 65 91 66 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.