Changeset 4749 for waeup/branches


Ignore:
Timestamp:
8 Jan 2010, 14:31:32 (15 years ago)
Author:
uli
Message:

Fix tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-layout/src/waeup/university/courserefs.txt

    r4488 r4749  
    3838    >>> faculty = createObject('waeup.Faculty')
    3939    >>> faculty.code = 'FAC'
    40     >>> root['app'].faculties.addFaculty(faculty)
    41     >>> fac = root['app'].faculties['FAC']
     40    >>> root['app']['faculties'].addFaculty(faculty)
     41    >>> fac = root['app']['faculties']['FAC']
    4242
    4343    >>> dept = createObject('waeup.Department')
    4444    >>> dept.code = 'DEPT'
    45     >>> root['app'].faculties['FAC'].addDepartment(dept)
     45    >>> root['app']['faculties']['FAC'].addDepartment(dept)
    4646
    4747    >>> course = createObject('waeup.Course')
     
    5353    >>> dept2 = createObject('waeup.Department')
    5454    >>> dept2.code = 'DEPT2'
    55     >>> root['app'].faculties['FAC'].addDepartment(dept2)
     55    >>> root['app']['faculties']['FAC'].addDepartment(dept2)
    5656
    5757    >>> course = createObject('waeup.Course')
     
    8686(not only equal):
    8787
    88     >>> a = root['app'].faculties['FAC']['DEPT']
     88    >>> a = root['app']['faculties']['FAC']['DEPT']
    8989    >>> b1 = a.courses['CRS1']
    9090    >>> b2 = a.certificates['CERT']['CRS1_100'].course
     
    101101    [u'CRS1']
    102102
    103     >>> del root['app'].faculties['FAC']['DEPT'].courses['CRS1']
     103    >>> del root['app']['faculties']['FAC']['DEPT'].courses['CRS1']
    104104    >>> list(a.certificates['CERT'])
    105105    [u'CRS2_100', u'CRS2_200']
Note: See TracChangeset for help on using the changeset viewer.