/[thuban]/branches/WIP-pyshapelib-bramz/test/test_lib_version.py
ViewVC logotype

Annotation of /branches/WIP-pyshapelib-bramz/test/test_lib_version.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2011 - (hide annotations)
Wed Dec 3 09:46:27 2003 UTC (21 years, 3 months ago) by bh
Original Path: trunk/thuban/test/test_lib_version.py
File MIME type: text/x-python
File size: 756 byte(s)
* Thuban/Lib/version.py: New. Module for version number
manipulations. The version of make_tuple here also deals better
with more unusual version number strings, such as e.g.
"1.2+cvs20031111"

* Thuban/version.py (make_tuple): Removed. It's now in
Thuban.Lib.version. Use that implementation instead.

* test/test_lib_version.py: New. Tests for Thuban/Lib/version.py

1 bh 2011 # Copyright (C) 2003 by Intevation GmbH
2     # Authors:
3     # Bernhard Herzog <[email protected]>
4     #
5     # This program is free software under the GPL (>=v2)
6     # Read the file COPYING coming with the software for details.
7    
8     """"""
9    
10     __version__ = "$Revision$"
11     # $Source$
12     # $Id$
13    
14     import unittest
15    
16     import support
17     support.initthuban()
18    
19     from Thuban.Lib.version import make_tuple
20    
21    
22     class TestMakeTuple(unittest.TestCase):
23    
24     def test(self):
25     """Test Thuban.version.make_tuple()"""
26     self.assertEquals(make_tuple("1.2"), (1, 2))
27     self.assertEquals(make_tuple("1.2.3"), (1, 2, 3))
28     self.assertEquals(make_tuple("2.4.0.7"), (2, 4, 0))
29     self.assertEquals(make_tuple("1.2+cvs.20031111"), (1, 2))
30    
31    
32     if __name__ == "__main__":
33     support.run_tests()

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26