/usr/local/Hypy

diff hypy/test_lib.py @ 139:d0a738aea316

Added tag 0.8.4.1 for changeset bbc3e3a3c4fb
author Cory Dodt <corymercurial@spam.goonmill.org>
date Fri Oct 09 10:32:45 2009 -0700 (2009-10-09)
parents 7a4447b28d87
children
line diff
     1.1 --- a/hypy/test_lib.py	Mon Apr 06 19:33:05 2009 -0700
     1.2 +++ b/hypy/test_lib.py	Fri Oct 09 10:32:45 2009 -0700
     1.3 @@ -205,7 +205,6 @@
     1.4              # this is odd, but it should work
     1.5              db.remove(id=1, uri=None)
     1.6  
     1.7 -
     1.8      def test_removeNulls(self):
     1.9          """
    1.10          Bug 321579: nulls should not kill addText
    1.11 @@ -447,5 +446,22 @@
    1.12              self.assertEqual(len(db.search(cond)), 1)
    1.13  
    1.14  
    1.15 +class TestMisc(unittest.TestCase):
    1.16 +    """
    1.17 +    Test misc. features of the package such as version string
    1.18 +    """
    1.19 +    def test_version(self):
    1.20 +        """
    1.21 +        __version__ and other release info can be found in copyright.py and
    1.22 +        __init__.py
    1.23 +
    1.24 +        This doesn't really verify that copyright.py is generated correctly,
    1.25 +        just that it exists and has the right contents.
    1.26 +        """
    1.27 +        from hypy import __version__ as version1
    1.28 +        from hypy.copyright import __version__ as version2
    1.29 +        self.assertEqual(version1, version2)
    1.30 +
    1.31 +
    1.32  if __name__ == '__main__':
    1.33      unittest.main()