Changeset 46d50ca in sasview for Invariant/test
- Timestamp:
- Jan 9, 2010 3:41:56 PM (15 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:
- 9e37661
- Parents:
- b345c45
- Location:
- Invariant/test
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Invariant/test/utest_use_cases.py
rb345c45 r46d50ca 96 96 def test_wrong_data(self): 97 97 """ test receiving Data1D not of type loader""" 98 # That just doesn;t make sense 99 100 wrong_data= Data1D() 101 invariant.InvariantCalculator(wrong_data) 102 103 try: 104 self.assertRaises(ValueError,invariant.InvariantCalculator(wrong_data)) 105 except ValueError, msg: 106 print "test pass "+ str(msg) 107 else: raise ValueError, "fail to raise exception when expected" 108 109 print "test" 110 self.assertRaises(ValueError,invariant.InvariantCalculator, wrong_data ) 98 99 100 self.assertRaises(ValueError,invariant.InvariantCalculator, Data1D()) 111 101 112 102 def test_use_case_1(self):
Note: See TracChangeset
for help on using the changeset viewer.