source: WAeUP_SRP/trunk/tests/test_vocabularies.py @ 9441

Last change on this file since 9441 was 295, checked in by joachim, 18 years ago

=Courses and Certificates Folder added

  • Property svn:keywords set to Id
File size: 670 bytes
RevLine 
[267]1# -*- coding: ISO-8859-15 -*-
2#
3# $Id: test_vocabularies.py 295 2006-07-13 11:37:54Z joachim $
4import unittest
5
[295]6from waeuptest import WAeUP_SRPTest
[267]7
8from Products.CMFCore.utils import getToolByName
9
[295]10class TestVocabularies(WAeUP_SRPTest):
[267]11   
12    def afterSetUp(self):
13        wftool = getToolByName(self.portal, 'portal_workflow')
[295]14        af = self.portal.campus.academics
[267]15        wftool.invokeFactoryFor(af, 'Faculty', 'fac1')
16        fac1 = af.fac1
17        wftool.invokeFactoryFor(fac1, 'Department', 'dep1')
18       
19   
20    def test_departmentVoc(self):
21        deps = self.portal.get_departments_voc()
22       
23
24def test_suite():
25    return unittest.TestSuite((
26        unittest.makeSuite(TestVocabularies),
27        ))
Note: See TracBrowser for help on using the repository browser.