# -*- coding: ISO-8859-15 -*- # # $Id: test_vocabularies.py 267 2006-06-23 10:57:21Z lregebro $ import unittest from waeuptest import WAeUPTest from Products.CMFCore.utils import getToolByName class TestVocabularies(WAeUPTest): def afterSetUp(self): wftool = getToolByName(self.portal, 'portal_workflow') af = self.portal.uniportal.academics wftool.invokeFactoryFor(af, 'Faculty', 'fac1') fac1 = af.fac1 wftool.invokeFactoryFor(fac1, 'Department', 'dep1') def test_departmentVoc(self): deps = self.portal.get_departments_voc() def test_suite(): return unittest.TestSuite(( unittest.makeSuite(TestVocabularies), ))