Code

Fix first part of Password handling security issue2550688 (thanks
[roundup.git] / test / test_security.py
index c7d51286b4c35dcd5970f6a9821cf72936c4c2b4..0d25c6b5188235c4842dab8f0a144cfc44785f88 100644 (file)
@@ -23,7 +23,7 @@
 import os, unittest, shutil
 
 from roundup import backends
-from roundup.password import Password
+import roundup.password
 from db_test_base import setupSchema, MyTestCase, config
 
 class PermissionTest(MyTestCase):
@@ -233,6 +233,10 @@ class PermissionTest(MyTestCase):
         self.assertEquals(has(uimu, 'issue', 'messages.recipients'), 1)
         self.assertEquals(has(uimu, 'issue', 'messages.recipients.username'), 1)
 
+    # roundup.password has its own built-in test, call it.
+    def test_password(self):
+        roundup.password.test()
+
 def test_suite():
     suite = unittest.TestSuite()
     suite.addTest(unittest.makeSuite(PermissionTest))