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