Changeset 7909 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 18 Mar 2012, 15:00:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_batching.py
r7867 r7909 140 140 self.csv_file, APPS_CONTAINER_HEADER_FIELDS) 141 141 avail_containers = [x for x in self.app['applicants'].keys()] 142 self.assertTrue(u'CODE1' in avail_containers) 143 self.assertTrue(u'CODE2' in avail_containers) 142 container = self.app['applicants'].get('app2012', None) 143 container2 = self.app['applicants'].get('app2013', None) 144 self.assertTrue(container is not None) 145 self.assertTrue(container2 is not None) 146 147 # check attributes 148 self.assertEqual(container.code, u'app2012') 149 self.assertEqual(container.title, u'General Studies 2012/2013') 150 self.assertEqual(container.prefix, u'app') 151 self.assertEqual(container.entry_level, 100) 152 self.assertEqual(container.year, 2012) 153 self.assertEqual( 154 container.provider[0], 155 u'waeup.kofa.applicants.ApplicantsContainer') 156 self.assertEqual(container.application_category, 'basic') 157 self.assertEqual( 158 container.description, 159 u'This text can been seen by anonymous users.\n' 160 u'>>de<<\nDieser Text kann von anonymen Benutzern ' 161 u'gelesen werden.') 162 self.assertEqual(container.startdate, datetime.date(2012, 3, 1)) 163 self.assertEqual(container.enddate, datetime.date(2012, 4, 25)) 144 164 shutil.rmtree(os.path.dirname(fin_file)) 145 165
Note: See TracChangeset for help on using the changeset viewer.