]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Fix tests for OpenSSL version check.
authorDaira Hopwood <daira@jacaranda.org>
Sat, 12 Apr 2014 16:57:32 +0000 (17:57 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Sat, 12 Apr 2014 16:57:32 +0000 (17:57 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/test/test_version.py

index 5e30d2a0f105a6d17a358d462054dcf1900a75b2..c6ba1087e9b541da6742374af1eec3dae6ce8b68 100644 (file)
@@ -135,6 +135,8 @@ class CheckRequirement(unittest.TestCase):
         self.failUnlessRaises(PackagingError, check_openssl_version, MockSSL("OpenSSL 1.0.0", True))
         self.failUnlessRaises(PackagingError, check_openssl_version, MockSSL("OpenSSL 1.0.0k"))
         self.failUnlessRaises(PackagingError, check_openssl_version, MockSSL("OpenSSL 1.0.1"))
+        self.failUnlessRaises(PackagingError, check_openssl_version, MockSSL("OpenSSL 1.0.1", True))
+        self.failUnlessRaises(PackagingError, check_openssl_version, MockSSL("OpenSSL 1.0.1c", True))
         self.failUnlessRaises(PackagingError, check_openssl_version, MockSSL("OpenSSL 1.0.1e 11 Feb 2013"))
         self.failUnlessRaises(PackagingError, check_openssl_version, MockSSL("OpenSSL 1.0.1e 5 Apr 2014"))
         self.failUnlessRaises(PackagingError, check_openssl_version, MockSSL("OpenSSL 1.0.1e 7 Abc 2014"))
@@ -149,9 +151,9 @@ class CheckRequirement(unittest.TestCase):
         check_openssl_version(MockSSL("OpenSSL 0.9.8z"))
         check_openssl_version(MockSSL("OpenSSL 1.0.0l"))
         check_openssl_version(MockSSL("OpenSSL 1.0.0m"))
-        check_openssl_version(MockSSL("OpenSSL 1.0.1", True))
+        check_openssl_version(MockSSL("OpenSSL 1.0.1d", True))
         check_openssl_version(MockSSL("OpenSSL 1.0.1e 11 Feb 2013", True))
-        check_openssl_version(MockSSL("OpenSSL 1.0.1 7 Apr 2014"))
+        check_openssl_version(MockSSL("OpenSSL 1.0.1d 7 Apr 2014"))
         check_openssl_version(MockSSL("OpenSSL 1.0.1e 7 Apr 2014"))
         check_openssl_version(MockSSL("OpenSSL 1.0.1g 1 Mar 2014"))
         check_openssl_version(MockSSL("OpenSSL 1.0.1h 1 Jan 2015"))