Ignore:
Timestamp:
17 Jun 2012, 06:42:20 (13 years ago)
Author:
Henrik Bettermann
Message:

Let's use the msave helper function also in university and other packages. msave applies applyData to the view and writes a view-specific log message. The context object of the view must have a writeLogMessage method.

In the students package writeLogMessage is now provided by all classes which implement IStudentNavigation.

File:
1 edited

Legend:

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

    r8467 r8735  
    3636from waeup.kofa.students.interfaces import (
    3737    IStudent, IStudentStudyCourse, IStudentPaymentsContainer,
    38     IStudentAccommodation, IStudentStudyLevel, ICourseTicket, IBedTicket)
     38    IStudentAccommodation, IStudentStudyLevel, ICourseTicket, IBedTicket,
     39    IStudentNavigation)
    3940from waeup.kofa.students.tests.test_batching import StudentImportExportSetup
    4041from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
     
    8687    def test_interfaces(self):
    8788        verify.verifyClass(IStudent, Student)
     89        verify.verifyClass(IStudentNavigation, Student)
    8890        verify.verifyObject(IStudent, self.student)
     91        verify.verifyObject(IStudentNavigation, self.student)
     92
    8993        verify.verifyClass(IStudentStudyCourse, StudentStudyCourse)
     94        verify.verifyClass(IStudentNavigation, StudentStudyCourse)
    9095        verify.verifyObject(IStudentStudyCourse, self.studycourse)
     96        verify.verifyObject(IStudentNavigation, self.studycourse)
     97
     98        verify.verifyClass(IStudentStudyLevel, StudentStudyLevel)
     99        verify.verifyClass(IStudentNavigation, StudentStudyLevel)
    91100        verify.verifyObject(IStudentStudyLevel, self.studylevel)
     101        verify.verifyObject(IStudentNavigation, self.studylevel)
     102
     103        verify.verifyClass(ICourseTicket, CourseTicket)
     104        verify.verifyClass(IStudentNavigation, CourseTicket)
    92105        verify.verifyObject(ICourseTicket, self.courseticket)
     106        verify.verifyObject(IStudentNavigation, self.courseticket)
     107
    93108        verify.verifyClass(IStudentPaymentsContainer, StudentPaymentsContainer)
     109        verify.verifyClass(IStudentNavigation, StudentPaymentsContainer)
    94110        verify.verifyObject(IStudentPaymentsContainer, self.payments)
     111        verify.verifyObject(IStudentNavigation, self.payments)
     112
    95113        verify.verifyClass(IStudentAccommodation, StudentAccommodation)
     114        verify.verifyClass(IStudentNavigation, StudentAccommodation)
    96115        verify.verifyObject(IStudentAccommodation, self.accommodation)
     116        verify.verifyObject(IStudentNavigation, self.accommodation)
     117
    97118        verify.verifyClass(IBedTicket, BedTicket)
     119        verify.verifyClass(IStudentNavigation, BedTicket)
    98120        verify.verifyObject(IBedTicket, self.bedticket)
     121        verify.verifyObject(IStudentNavigation, self.bedticket)
    99122        return
    100123
Note: See TracChangeset for help on using the changeset viewer.