Last change
on this file was
1,
checked in by myroslav, 18 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
764 bytes
|
Rev | Line | |
---|
[1] | 1 | |
---|
| 2 | """ This module contains class that tests product's utility module """ |
---|
| 3 | |
---|
| 4 | |
---|
| 5 | import os, sys, string |
---|
| 6 | if __name__ == '__main__': |
---|
| 7 | execfile(os.path.join(sys.path[0], 'framework.py')) |
---|
| 8 | |
---|
| 9 | from commonTestingStuff import * |
---|
| 10 | |
---|
| 11 | class TestUtility(PloneTestCase.PloneTestCase): |
---|
| 12 | """ Class for testing product utility module """ |
---|
| 13 | |
---|
| 14 | def testProcessDesc(self): |
---|
| 15 | """ Test utility function processDesc: replace in a given string '\r\n' with ' ' and '\"' with '\'' """ |
---|
| 16 | self.failUnless(processDesc(UNPROCESSED_STRING)==PROCESSED_STRING, 'Utility function processDesc fail') |
---|
| 17 | |
---|
| 18 | def test_suite(): |
---|
| 19 | from unittest import TestSuite, makeSuite |
---|
| 20 | suite = TestSuite() |
---|
| 21 | suite.addTest(makeSuite(TestUtility)) |
---|
| 22 | return suite |
---|
| 23 | |
---|
| 24 | if __name__ == '__main__': |
---|
| 25 | framework() |
---|
Note: See
TracBrowser
for help on using the repository browser.