1
2
3
4
5
6
7
8
9 """Test some base functionality which did not make it into a separate unittests"""
10
11 import unittest
12 from tempfile import mktemp
13
14 from mvpa.base.info import wtf
15
17
19 """Very basic testing -- just to see if it doesn't crash"""
20
21 try:
22 wtf()
23 except Exception, e:
24 self.fail('Testing of systemInfo failed with "%s"' % str(e))
25
26 filename = mktemp('mvpa', 'test')
27 wtf(filename)
28 try:
29 syslines = open(filename, 'r').readlines()
30 except Exception, e:
31 self.fail('Testing of dumping systemInfo into a file failed: %s' % str(e))
32
35
36
37 if __name__ == '__main__':
38 import runner
39