Ignore:
Timestamp:
21 Mar 2013, 10:57:48 (12 years ago)
Author:
Henrik Bettermann
Message:

Also matric or reg numbers can be used as student identifiers.

File:
1 edited

Legend:

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

    r10040 r10041  
    109109        self.assertEqual(result,
    110110            {'100|CRS1': 'Course 1', '100|COURSE1': 'Unnamed Course'})
     111        # Also matric_number ...
     112        result = server.get_courses_by_session('234')
     113        self.assertEqual(result,
     114            {'100|CRS1': 'Course 1', '100|COURSE1': 'Unnamed Course'})
     115        # ... or reg_number can be used.
     116        result = server.get_courses_by_session('123')
     117        self.assertEqual(result,
     118            {'100|CRS1': 'Course 1', '100|COURSE1': 'Unnamed Course'})
     119        result = server.get_courses_by_session('Nonsense')
     120        self.assertEqual(result, None)
    111121        REQUEST_XML="""\
    112122<?xml version="1.0"?>
Note: See TracChangeset for help on using the changeset viewer.