1
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
3
# Main unit test interface for PyNIfTI
5
# Copyright (C) 2007 by
6
# Michael Hanke <michael.hanke@gmail.com>
8
# This package is free software; you can redistribute it and/or
9
# modify it under the terms of the GNU Lesser General Public
10
# version 2 of the License, or (at your option) any later version.
12
# This package is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
# Lesser General Public License for more details.
17
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
21
# list all test modules (without .py extension)
22
tests = [ 'test_fileio',
27
# import all test modules
32
if __name__ == '__main__':
34
# load all tests suites
35
suites = [ eval(t + '.suite()') for t in tests ]
37
# and make global test suite
38
ts = unittest.TestSuite( suites )
41
unittest.TextTestRunner().run( ts )