Ignore:
Timestamp:
22 Feb 2012, 21:14:09 (13 years ago)
Author:
Henrik Bettermann
Message:

Uses sources instead of vocabularies and feed sources with dictionaries defined in SIRPUtils. This way we can easily customize the sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/university/tests/test_faculty.py

    r7195 r7681  
    2222import unittest
    2323from zope.interface.verify import verifyObject, verifyClass
    24 from waeup.sirp.university import Faculty
    25 from waeup.sirp.university.interfaces import IFaculty
     24from waeup.sirp.university import Faculty, Department
     25from waeup.sirp.university.interfaces import IFaculty, IDepartment
    2626
    27 class FacultyTests(unittest.TestCase):
     27class FacultyAndDepartmentTests(unittest.TestCase):
    2828
    2929    def test_ifaces(self):
     
    3232        verifyClass(IFaculty, Faculty)
    3333        verifyObject(IFaculty, fac)
     34        dep = Department()
     35        verifyClass(IDepartment, Department)
     36        verifyObject(IDepartment, dep)
    3437        return
    35 
    36     def test_longtitle(self):
    37         # Make sure we get a longtitle
    38         fac = Faculty()
    39         self.assertEqual(fac.longtitle(),
    40                          u'Faculty of Unnamed Faculty (NA)')
    41 
    42     def test_longtitle_no_terms(self):
    43         # Make sure we get a longtitle also if no term for the title
    44         # prefix is available
    45         fac = Faculty()
    46         fac.title_prefix = 'Studio for' # Not a valid prefix
    47         self.assertEqual(fac.longtitle(),
    48                          u'Unnamed Faculty (NA)')
Note: See TracChangeset for help on using the changeset viewer.