Ignore:
Timestamp:
26 May 2014, 16:27:50 (10 years ago)
Author:
uli
Message:

Deliver images on demand and test this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_webservices.py

    r11666 r11668  
    395395             'fingerprints': {},
    396396             'img': None,
     397             'img_name': None,
    397398             })
     399
     400    def test_get_student_fingerprints_passport(self):
     401        # we get a photograph of the student if avail.
     402        server = ServerProxy('http://mgr:mgrpw@localhost/app')
     403        self.setup_student(self.student)
     404        self.create_passport_img(self.student)
     405        result = server.get_student_fingerprints(self.student.student_id)
     406        self.assertTrue(
     407            isinstance(result['img'], xmlrpclib.Binary))
     408        self.assertEqual(result['img_name'], 'passport_K1000000.jpg')
    398409
    399410    def test_get_student_fingerprints_block_unauthorized(self):
Note: See TracChangeset for help on using the changeset viewer.