root/trunk/python-jsonrpc/run-tests.py

Revision 10, 1.2 kB (checked in by Jan-Klaas Kollhof, 3 years ago)

adding LGPL lic. info

  • Property svn:executable set to *
Line 
1#!/usr/bin/env python
2
3"""
4  Copyright (c) 2007 Jan-Klaas Kollhof
5
6  This file is part of jsonrpc.
7
8  jsonrpc is free software; you can redistribute it and/or modify
9  it under the terms of the GNU Lesser General Public License as published by
10  the Free Software Foundation; either version 2.1 of the License, or
11  (at your option) any later version.
12
13  This software is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  GNU Lesser General Public License for more details.
17
18  You should have received a copy of the GNU Lesser General Public License
19  along with this software; if not, write to the Free Software
20  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21"""
22
23
24import unittest
25import os
26
27
28from jsonrpc import _tests
29
30if __name__ == "__main__":
31
32    testPath = os.path.split(_tests.__file__)[0]
33    testModules = []
34    for fileName in os.listdir(testPath):
35        if fileName[-3:] == '.py' and fileName != '__init__.py':
36            testModules.append('jsonrpc._tests.%s' % fileName[:-3])
37
38    suite = unittest.TestLoader().loadTestsFromNames(testModules)
39
40    unittest.TextTestRunner(verbosity=5).run(suite)
41   
Note: See TracBrowser for help on using the browser.