Changeset 14681 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 1 May 2017, 06:25:32 (8 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_webservices.py
r14637 r14681 437 437 self.student, attr="finger1.fpm") 438 438 self.assertEqual(stored_file.read(), 'FP1faked_fpm') 439 # storing is logged 440 logfile = os.path.join( 441 self.app['datacenter'].storage, 'logs', 'students.log') 442 logcontent = open(logfile).read() 443 self.assertTrue( 444 'zope.mgr - grok.meta.StudentsXMLRPC ' 445 '- K1000000 - fingerprint stored' in logcontent) 439 446 440 447 def test_put_student_fingerprints_existing(self): -
main/waeup.kofa/trunk/src/waeup/kofa/students/webservices.py
r14637 r14681 294 294 attr='finger%s.fpm' % num) 295 295 file_store.createFile(file_id, StringIO(val.data)) 296 student.writeLogMessage(self, 'fingerprint stored') 296 297 result = True 297 298 return result
Note: See TracChangeset for help on using the changeset viewer.