summaryrefslogtreecommitdiff
path: root/mailman/tests/test_passwords.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-01-16 21:16:43 -0500
committerBarry Warsaw2009-01-16 21:16:43 -0500
commit0c996b693d1cc68d864acc313ba919197717a413 (patch)
treeb3fb5b5a6c5c52056bd8324f9ac8a6bf1a0e13b5 /mailman/tests/test_passwords.py
parentae3d0cc316b826b8325507d960ccf84da601c3b0 (diff)
downloadmailman-0c996b693d1cc68d864acc313ba919197717a413.tar.gz
mailman-0c996b693d1cc68d864acc313ba919197717a413.tar.zst
mailman-0c996b693d1cc68d864acc313ba919197717a413.zip
Diffstat (limited to 'mailman/tests/test_passwords.py')
-rw-r--r--mailman/tests/test_passwords.py23
1 files changed, 2 insertions, 21 deletions
diff --git a/mailman/tests/test_passwords.py b/mailman/tests/test_passwords.py
index d8d310f08..6620a7067 100644
--- a/mailman/tests/test_passwords.py
+++ b/mailman/tests/test_passwords.py
@@ -38,14 +38,12 @@ class TestPasswordsBase(unittest.TestCase):
def setUp(self):
# passwords; 8-bit or unicode strings; ascii or binary
self.pw8a = 'abc'
- self.pwua = u'abc'
self.pw8b = 'abc\xc3\xbf' # 'abc\xff'
- self.pwub = u'abc\xff'
+ self.pwub = 'abc\xff'
# bad password; 8-bit or unicode; ascii or binary
self.bad8a = 'xyz'
- self.badua = u'xyz'
self.bad8b = 'xyz\xc3\xbf' # 'xyz\xff'
- self.badub = u'xyz\xff'
+ self.badub = 'xyz\xff'
def test_passwords(self):
unless = self.failUnless
@@ -54,13 +52,6 @@ class TestPasswordsBase(unittest.TestCase):
unless(passwords.check_response(secret, self.pw8a))
failif(passwords.check_response(secret, self.bad8a))
- def test_unicode_passwords(self):
- unless = self.failUnless
- failif = self.failIf
- secret = passwords.make_secret(self.pwua, self.scheme)
- unless(passwords.check_response(secret, self.pwua))
- failif(passwords.check_response(secret, self.badua))
-
def test_passwords_with_funky_chars(self):
unless = self.failUnless
failif = self.failIf
@@ -84,10 +75,6 @@ class TestBogusPasswords(TestPasswordsBase):
self.assertRaises(errors.BadPasswordSchemeError,
passwords.make_secret, self.pw8a, self.scheme)
- def test_unicode_passwords(self):
- self.assertRaises(errors.BadPasswordSchemeError,
- passwords.make_secret, self.pwua, self.scheme)
-
def test_passwords_with_funky_chars(self):
self.assertRaises(errors.BadPasswordSchemeError,
passwords.make_secret, self.pw8b, self.scheme)
@@ -107,12 +94,6 @@ class TestNonePasswords(TestPasswordsBase):
failif(passwords.check_response(secret, self.pw8a))
failif(passwords.check_response(secret, self.bad8a))
- def test_unicode_passwords(self):
- failif = self.failIf
- secret = passwords.make_secret(self.pwua, self.scheme)
- failif(passwords.check_response(secret, self.pwua))
- failif(passwords.check_response(secret, self.badua))
-
def test_passwords_with_funky_chars(self):
failif = self.failIf
secret = passwords.make_secret(self.pw8b, self.scheme)