|
Last change
on this file since 286 was
267,
checked in by lregebro, 20 years ago
|
|
add test example.
|
-
Property svn:keywords set to
Id
|
|
File size:
665 bytes
|
| Line | |
|---|
| 1 | # -*- coding: ISO-8859-15 -*- |
|---|
| 2 | # |
|---|
| 3 | # $Id: test_vocabularies.py 267 2006-06-23 10:57:21Z lregebro $ |
|---|
| 4 | import unittest |
|---|
| 5 | |
|---|
| 6 | from waeuptest import WAeUPTest |
|---|
| 7 | |
|---|
| 8 | from Products.CMFCore.utils import getToolByName |
|---|
| 9 | |
|---|
| 10 | class TestVocabularies(WAeUPTest): |
|---|
| 11 | |
|---|
| 12 | def afterSetUp(self): |
|---|
| 13 | wftool = getToolByName(self.portal, 'portal_workflow') |
|---|
| 14 | af = self.portal.uniportal.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.