Package mvpa :: Package tests :: Module test_cmdline
[hide private]
[frames] | no frames]

Source Code for Module mvpa.tests.test_cmdline

 1  # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- 
 2  # vi: set ft=python sts=4 ts=4 sw=4 et: 
 3  ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## 
 4  # 
 5  #   See COPYING file distributed along with the PyMVPA package for the 
 6  #   copyright and license terms. 
 7  # 
 8  ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## 
 9  """Unit tests for PyMVPA cmdline helpers""" 
10   
11  import unittest 
12  from mvpa.misc.cmdline import * 
13   
14  if __debug__: 
15      from mvpa.base import debug 
16   
17 -class CmdlineHelpersTest(unittest.TestCase):
18
19 - def testBasic(self):
20 """Test if we are not missing basic parts""" 21 globals_ = globals() 22 for member in [#'_verboseCallback', 23 'parser', 'opt', 'opts']: 24 self.failUnless(globals_.has_key(member), 25 msg="We must have imported %s from mvpa.misc.cmdline!" % member)
26
27 -def suite():
28 return unittest.makeSuite(CmdlineHelpersTest)
29 30 31 if __name__ == '__main__': 32 import runner 33