summaryrefslogtreecommitdiff
path: root/mailman/tests/test_security_mgr.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-01-04 19:41:05 -0500
committerBarry Warsaw2009-01-04 19:41:05 -0500
commitf6d998b93b0dd8978eadc9abc4c3964e3fe66bf7 (patch)
treefc64f36b862ae61965e8d23fd00e56dcac1a5ee3 /mailman/tests/test_security_mgr.py
parent706c3853103f53955068cc429c0bd6d1f8fb6dd0 (diff)
downloadmailman-f6d998b93b0dd8978eadc9abc4c3964e3fe66bf7.tar.gz
mailman-f6d998b93b0dd8978eadc9abc4c3964e3fe66bf7.tar.zst
mailman-f6d998b93b0dd8978eadc9abc4c3964e3fe66bf7.zip
Diffstat (limited to 'mailman/tests/test_security_mgr.py')
-rw-r--r--mailman/tests/test_security_mgr.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/mailman/tests/test_security_mgr.py b/mailman/tests/test_security_mgr.py
index 76f242104..a70129210 100644
--- a/mailman/tests/test_security_mgr.py
+++ b/mailman/tests/test_security_mgr.py
@@ -19,7 +19,6 @@
import os
import errno
-import Cookie
import unittest
# Don't use cStringIO because we're going to inherit
@@ -88,11 +87,13 @@ class TestAuthenticate(unittest.TestCase):
try:
os.unlink(config.SITE_PW_FILE)
except OSError, e:
- if e.errno <> errno.ENOENT: raise
+ if e.errno <> errno.ENOENT:
+ raise
try:
os.unlink(config.LISTCREATOR_PW_FILE)
except OSError, e:
- if e.errno <> errno.ENOENT: raise
+ if e.errno <> errno.ENOENT:
+ raise
def test_auth_creator(self):
self.assertEqual(self._mlist.Authenticate(
@@ -187,11 +188,13 @@ class TestWebAuthenticate(unittest.TestCase):
try:
os.unlink(config.SITE_PW_FILE)
except OSError, e:
- if e.errno <> errno.ENOENT: raise
+ if e.errno <> errno.ENOENT:
+ raise
try:
os.unlink(config.LISTCREATOR_PW_FILE)
except OSError, e:
- if e.errno <> errno.ENOENT: raise
+ if e.errno <> errno.ENOENT:
+ raise
del os.environ['HTTP_COOKIE']
def test_auth_site_admin(self):