Ignore:
Timestamp:
23 Feb 2012, 07:43:06 (13 years ago)
Author:
Henrik Bettermann
Message:

Merge the vocabularies module with the interfaces module. I don't see any other way to avoid conflicting imports since we have now IApplicantsUtils defined in interfaces and needed in vocabularies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_interfaces.py

    r7193 r7683  
    2222from zc.sourcefactory.browser.source import FactoredTerms
    2323from zope.publisher.browser import TestRequest
    24 from waeup.sirp.applicants.vocabularies import application_types_vocab
     24from waeup.sirp.applicants.interfaces import ApplicationTypeSource
    2525from waeup.sirp.students.vocabularies import GenderSource
    26 
    27 class ApplicationCategoriesTestCase(unittest.TestCase):
    28 
    29     def setUp(self):
    30         self.vocab = application_types_vocab
    31         return
    32 
    33     def test_vocabulary_len(self):
    34         self.assertEqual(len(self.vocab), 10)
    35         return
    36 
    37     def test_vocabulary_items(self):
    38         self.assertTrue('pude' in self.vocab)
    39         return
    40 
    41     def test_term_attributes(self):
    42         # Check that each vocab entry provided value, token, and title.
    43         term = self.vocab.getTermByToken('pude')
    44         self.assertEqual(term.token, 'pude')
    45         self.assertEqual(term.value, 'pude')
    46         self.assertEqual(term.title, 'Post UDE Screening')
    47         return
    4826
    4927class InterfacesTest(unittest.TestCase):
     
    8260    suite = unittest.TestSuite()
    8361    for testcase in [
    84             ApplicationCategoriesTestCase,
    8562            InterfacesTest,
    8663            ]:
Note: See TracChangeset for help on using the changeset viewer.