Last change
on this file was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
1.2 KB
|
Line | |
---|
1 | |
---|
2 | """ This module contains class that tests product's installation procedure """ |
---|
3 | |
---|
4 | import os, sys, string |
---|
5 | if __name__ == '__main__': |
---|
6 | execfile(os.path.join(sys.path[0], 'framework.py')) |
---|
7 | |
---|
8 | from commonTestingStuff import * |
---|
9 | |
---|
10 | class TestInstallation(PloneTestCase.PloneTestCase): |
---|
11 | """ Class for testing installation procedure """ |
---|
12 | |
---|
13 | def afterSetUp(self): |
---|
14 | """ AfterSetUp features """ |
---|
15 | self.qi = getToolByName(self.portal, 'portal_quickinstaller') |
---|
16 | self.qi.installProduct(PRODUCT) |
---|
17 | |
---|
18 | def testAddingExternalMethod(self): |
---|
19 | """ Test adding external method to portal """ |
---|
20 | self.failUnless(EXTERNAL_METHOD in self.portal.objectIds(), |
---|
21 | '%s external method does not exist in portal' % EXTERNAL_METHOD) |
---|
22 | |
---|
23 | def testAddingPythonScript(self): |
---|
24 | """ Test adding python script to portal """ |
---|
25 | self.failUnless(PYTHON_SCRIPT in self.portal.objectIds(), |
---|
26 | '%s python script does not exist in portal' % PYTHON_SCRIPT) |
---|
27 | |
---|
28 | #tests.append(TestInstallation) |
---|
29 | |
---|
30 | def test_suite(): |
---|
31 | from unittest import TestSuite, makeSuite |
---|
32 | suite = TestSuite() |
---|
33 | suite.addTest(makeSuite(TestInstallation)) |
---|
34 | return suite |
---|
35 | |
---|
36 | if __name__ == '__main__': |
---|
37 | framework() |
---|
Note: See
TracBrowser
for help on using the repository browser.