|
0
|
1 |
""" |
|
|
2 |
GEOS Testing module. |
|
|
3 |
""" |
|
|
4 |
from unittest import TestSuite, TextTestRunner |
|
|
5 |
import test_geos, test_io, test_geos_mutation, test_mutable_list |
|
|
6 |
|
|
|
7 |
test_suites = [ |
|
|
8 |
test_geos.suite(), |
|
|
9 |
test_io.suite(), |
|
|
10 |
test_geos_mutation.suite(), |
|
|
11 |
test_mutable_list.suite(), |
|
|
12 |
] |
|
|
13 |
|
|
|
14 |
def suite(): |
|
|
15 |
"Builds a test suite for the GEOS tests." |
|
|
16 |
s = TestSuite() |
|
|
17 |
map(s.addTest, test_suites) |
|
|
18 |
return s |
|
|
19 |
|
|
|
20 |
def run(verbosity=1): |
|
|
21 |
"Runs the GEOS tests." |
|
|
22 |
TextTestRunner(verbosity=verbosity).run(suite()) |
|
|
23 |
|
|
|
24 |
if __name__ == '__main__': |
|
|
25 |
run(2) |