Package mvpa :: Package tests :: Module test_config

[hide private]
[frames] | no frames]

# Source Code for Module mvpa.tests.test_config

     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 dense array mapper"""
    10
    11
    12  import unittest
    13  from mvpa.base.config import ConfigManager
    14
    15 -class ConfigTests(unittest.TestCase):
    16
    17 -    def testConfig(self):
    18          cfg = ConfigManager()
    19
    20          # does nothing so far, but will be used to test the default
    21          # configuration from doc/examples/pymvpa.cfg
    22
    23          # query for some non-existing option and check if default is returned
    24          query = cfg.get('dasgibtsdochnicht', 'neegarnicht', default='required')
    25          self.failUnless(query == 'required')
    26
    27
    28
    29 -def suite():
    30      return unittest.makeSuite(ConfigTests)
    31
    32
    33  if __name__ == '__main__':
    34      import runner
    35