]> git.saurik.com Git - wxWidgets.git/blame - wxPython/wx/py/tests/test_version.py
removed a debugging print
[wxWidgets.git] / wxPython / wx / py / tests / test_version.py
CommitLineData
1fded56b
RD
1#!/usr/bin/env python
2
3__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
4__cvsid__ = "$Id$"
5__revision__ = "$Revision$"[11:-2]
6
7import unittest
8
9import types
10
11# Import from this module's parent directory.
12import os
13import sys
14sys.path.insert(0, os.pardir)
15import version
16del sys.path[0]
17del sys
18del os
19
20
21"""
22These unittest methods are preferred:
23-------------------------------------
24self.assert_(expr, msg=None)
25self.assertEqual(first, second, msg=None)
26self.assertRaises(excClass, callableObj, *args, **kwargs)
27self.fail(msg=None)
28self.failIf(expr, msg=None)
29"""
30
31
32class ModuleTestCase(unittest.TestCase):
33
34 def test_module(self):
35 module = version
36 self.assert_(module.__author__)
37 self.assert_(module.__cvsid__)
38 self.assert_(module.__revision__)
39 self.assert_(module.VERSION)
40
41
42class VersionTestCase(unittest.TestCase):
43
44 def test_VERSION(self):
45 self.assert_(type(version.VERSION) is types.StringType)
46
47
48if __name__ == '__main__':
49 unittest.main()