~vcs-imports/pysqlpool/trunk

« back to all changes in this revision

Viewing changes to test/__init__.py

  • Committer: nerdynick
  • Date: 2009-06-24 04:09:50 UTC
  • Revision ID: vcs-imports@canonical.com-20090624040950-23q0p4u9y3jqy2rb
Started the Unit Test framework
1st set of tests have been added to test the Connection creation and make sure an actual connection to the DB can be made. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import unittest
 
2
 
 
3
def suite():
 
4
        modules = ['connection']
 
5
        alltests = unittest.TestSuite()
 
6
        for module in map(__import__, modules):
 
7
                alltests.addTest(unittest.findTestCases(module))
 
8
                
 
9
        return alltests
 
10
 
 
11
if __name__ == "__main__":
 
12
        unittest.main(defaultTest="suite")
 
 
b'\\ No newline at end of file'