Package mvpa :: Package tests :: Module test_dochelpers

[hide private]
[frames] | no frames]

# Source Code for Module mvpa.tests.test_dochelpers

     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 dochelpers"""
    10
    11  from mvpa.base.dochelpers import singleOrPlural
    12
    13  import unittest
    14  import numpy as N
    15
    16 -class DochelpersTests(unittest.TestCase):
    17
    18 -    def testBasic(self):
    19          self.failUnlessEqual(singleOrPlural('a', 'b', 1), 'a')
    20          self.failUnlessEqual(singleOrPlural('a', 'b', 0), 'b')
    21          self.failUnlessEqual(singleOrPlural('a', 'b', 123), 'b')
    22
    23      # TODO: more unittests
    24 -def suite():
    25      return unittest.makeSuite(DochelpersTests)
    26
    27
    28  if __name__ == '__main__':
    29      import runner
    30