Changeset 8888 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 3 Jul 2012, 11:20:18 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py
r8886 r8888 762 762 # Logging message from updateEntry, 763 763 self.assertTrue( 764 'INFO - system - K1000000 - Course ticket updated: code=COURSE1, '764 'INFO - system - K1000000 - Course ticket in 100 updated: code=COURSE1, ' 765 765 'mandatory=False, score=3' 766 766 in logcontent) … … 776 776 self.assertEqual(num_warns,2) 777 777 shutil.rmtree(os.path.dirname(fin_file)) 778 779 def test_import_remove(self): 780 # We perform the same import twice, 781 # the second time in remove mode. The number 782 # of warnings must be the same. 783 num, num_warns, fin_file, fail_file = self.processor.doImport( 784 self.csv_file, COURSETICKET_HEADER_FIELDS,'create') 785 assert self.processor.entryExists( 786 dict(reg_number='1', level='100', code='COURSE1'), self.app) is True 787 num, num_warns, fin_file, fail_file = self.processor.doImport( 788 self.csv_file, COURSETICKET_HEADER_FIELDS,'remove') 789 self.assertEqual(num_warns,2) 790 assert self.processor.entryExists( 791 dict(reg_number='1', level='100', code='COURSE1'), self.app) is False 792 shutil.rmtree(os.path.dirname(fin_file)) 793 logcontent = open(self.logfile).read() 794 self.assertTrue( 795 'INFO - system - K1000000 - Course ticket in 100 removed: COURSE1' 796 in logcontent) 778 797 779 798 class PaymentProcessorTest(StudentImportExportSetup):
Note: See TracChangeset for help on using the changeset viewer.