Home | Trees | Indices | Help |
|
---|
|
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 151722 23 # TODO: more unittests19 self.failUnlessEqual(singleOrPlural('a', 'b', 1), 'a') 20 self.failUnlessEqual(singleOrPlural('a', 'b', 0), 'b') 21 self.failUnlessEqual(singleOrPlural('a', 'b', 123), 'b')25 return unittest.makeSuite(DochelpersTests)26 27 28 if __name__ == '__main__': 29 import runner 30
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Apr 23 23:09:44 2012 | http://epydoc.sourceforge.net |