Changeset 6217 for main


Ignore:
Timestamp:
29 May 2011, 09:23:53 (14 years ago)
Author:
Henrik Bettermann
Message:

Fix tests.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt

    r6214 r6217  
    337337  >>> print browser.contents
    338338  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    339   ...<div>The code chosen already exists in the database</div>
     339  ...<li class="message">Course exists already in...</li>
    340340  ...
    341341
  • main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.txt

    r5978 r6217  
    338338    >>> mycourse.code = 'MYCOURSE'
    339339    >>> mydept.courses.addCourse(mycourse)
     340    'Course added (for tests only).'
    340341    >>> mycert = createObject('waeup.Certificate')
    341342    >>> mycert.code = 'MYCERT'
    342343    >>> mydept.certificates.addCertificate(mycert)
     344    'Certificate added (for tests only).'
    343345    >>> mycert.addCourseRef(mycourse)
    344346
  • main/waeup.sirp/trunk/src/waeup/sirp/university/certificatecontainer.txt

    r5140 r6217  
    7272        >>> mycertificate = Certificate(code='CERTIFICATE1')
    7373        >>> mycontainer.addCertificate(mycertificate)
     74        'Certificate added (for tests only).'
    7475        >>> list(mycontainer.keys())
    7576        [u'CERTIFICATE1']
  • main/waeup.sirp/trunk/src/waeup/sirp/university/coursecontainer.txt

    r5140 r6217  
    7171        >>> mycourse = Course(code='COURSE1')
    7272        >>> mycontainer.addCourse(mycourse)
     73        'Course added (for tests only).'
    7374        >>> list(mycontainer.keys())
    7475        [u'COURSE1']
  • main/waeup.sirp/trunk/src/waeup/sirp/university/courserefs.txt

    r5978 r6217  
    4848    >>> course.code = 'CRS1'
    4949    >>> fac['DEPT'].courses.addCourse(course)
     50    'Course added.'
    5051
    5152Now let's add another department, which will also hold a course:
     
    5859    >>> course.code = 'CRS2'
    5960    >>> fac['DEPT2'].courses.addCourse(course)
     61    'Course added.'
    6062
    6163Finally, we add a certificate with referrers (certificate courses) to
     
    6567    >>> cert.code = 'CERT'
    6668    >>> fac['DEPT'].certificates.addCertificate(cert)
     69    'Certificate added.'
    6770
    6871    >>> fac['DEPT'].certificates['CERT'].addCourseRef(
Note: See TracChangeset for help on using the changeset viewer.