Last change
on this file since 16422 was
295,
checked in by joachim, 18 years ago
|
=Courses and Certificates Folder added
|
-
Property svn:keywords set to
Id
|
File size:
670 bytes
|
Line | |
---|
1 | # -*- coding: ISO-8859-15 -*- |
---|
2 | # |
---|
3 | # $Id: test_vocabularies.py 295 2006-07-13 11:37:54Z joachim $ |
---|
4 | import unittest |
---|
5 | |
---|
6 | from waeuptest import WAeUP_SRPTest |
---|
7 | |
---|
8 | from Products.CMFCore.utils import getToolByName |
---|
9 | |
---|
10 | class TestVocabularies(WAeUP_SRPTest): |
---|
11 | |
---|
12 | def afterSetUp(self): |
---|
13 | wftool = getToolByName(self.portal, 'portal_workflow') |
---|
14 | af = self.portal.campus.academics |
---|
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 | |
---|
24 | def test_suite(): |
---|
25 | return unittest.TestSuite(( |
---|
26 | unittest.makeSuite(TestVocabularies), |
---|
27 | )) |
---|
Note: See
TracBrowser for help on using the repository browser.