source: products/qPloneGoogleMaps/tags/0.1.0/tests/testUtility.py @ 1591

Last change on this file since 1591 was 1, checked in by myroslav, 15 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 764 bytes
Line 
1
2""" This module contains class that tests product's utility module """
3
4
5import os, sys, string
6if __name__ == '__main__':
7    execfile(os.path.join(sys.path[0], 'framework.py'))
8
9from commonTestingStuff import *
10
11class 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
18def test_suite():
19    from unittest import TestSuite, makeSuite
20    suite = TestSuite()
21    suite.addTest(makeSuite(TestUtility))
22    return suite
23
24if __name__ == '__main__':
25    framework()
Note: See TracBrowser for help on using the repository browser.