Changeset 9267 for main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/tests
- Timestamp:
- 2 Oct 2012, 07:34:48 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/tests/test_batching.py
r9266 r9267 180 180 self.csv_file, AC_HEADER_FIELDS) 181 181 182 self.assertEqual(self.app['accesscodes']['HOS-1'].used_num, 1) 183 self.assertEqual(self.app['accesscodes']['HOS-1'].disabled_num, 0) 184 self.assertEqual(self.app['accesscodes']['CLR-1'].used_num, 1) 185 self.assertEqual(self.app['accesscodes']['CLR-1'].disabled_num, 0) 186 182 187 self.csv_file = os.path.join(self.workdir, 'sample_ac_data_update.csv') 183 188 open(self.csv_file, 'wb').write(AC_SAMPLE_DATA_UPDATE) … … 200 205 "|<YYYY-MM-DD hh:mm:ss> UTC - used by system|" 201 206 "|<YYYY-MM-DD hh:mm:ss> UTC - disabled by system") 207 # When importing transitions the counters are properly set. 208 self.assertEqual(self.app['accesscodes']['HOS-1'].used_num, 0) 209 self.assertEqual(self.app['accesscodes']['HOS-1'].disabled_num, 1) 210 # When importing states the counters remain unchanged. 211 self.assertEqual(self.app['accesscodes']['CLR-1'].used_num, 1) 212 self.assertEqual(self.app['accesscodes']['CLR-1'].disabled_num, 0) 202 213 return
Note: See TracChangeset for help on using the changeset viewer.