unit_test.py
Go to the documentation of this file.
1 import sys
2 import test_msg
3 from test_msg import debug, info, error, warning
4 
5 print
6 print '\033[93mExecuting a unit test for geoalgo Package\033[00m'
7 print
8 
9 # message level: [0,1,2,3] = [debug,info,warning,error]
10 MSG_LEVEL=1
11 
12 test_msg.test_msg.level = MSG_LEVEL
13 
14 #
15 # Test import
16 #
17 from test_import import test_import
18 if test_import(): sys.exit(1)
19 
20 #
21 # Test Vector
22 #
23 from test_vector import test_vector
24 if test_vector(): sys.exit(1)
25 
26 #
27 # Test DistanceAlgo
28 #
29 from test_distance import test_dAlgo
30 if test_dAlgo(): sys.exit(1)