Ignore:
Timestamp:
27 Jul 2011, 12:05:31 (13 years ago)
Author:
uli
Message:

Bring test coverage for Faculty to 100%.

File:
1 edited

Legend:

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

    r6563 r6564  
    1616        return
    1717
    18     def test_longtitle_no_terms(self):
    19         # Make sure we get a longtitle also if no terms are available
     18    def test_longtitle(self):
     19        # Make sure we get a longtitle
    2020        fac = Faculty()
    2121        self.assertEqual(fac.longtitle(),
    2222                         u'Faculty of Unnamed Faculty (NA)')
     23
     24    def test_longtitle_no_terms(self):
     25        # Make sure we get a longtitle also if no term for the title
     26        # prefix is available
     27        fac = Faculty()
     28        fac.title_prefix = 'Studio for' # Not a valid prefix
     29        self.assertEqual(fac.longtitle(),
     30                         u'Unnamed Faculty (NA)')
Note: See TracChangeset for help on using the changeset viewer.