summaryrefslogtreecommitdiff
path: root/passlib/tests
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2012-03-10 18:40:14 -0500
committerEli Collins <elic@assurancetechnologies.com>2012-03-10 18:40:14 -0500
commit29468d26fa3c68a56bd739d4dd9be50d8dd6725c (patch)
treee628b2bf9c62cfe493c241c846c5f74fa2e39cb6 /passlib/tests
parent2ec09c9b2efc3b5e63467151b12d24196ddf582d (diff)
downloadpasslib-29468d26fa3c68a56bd739d4dd9be50d8dd6725c.tar.gz
to_bytes, to_unicode, to_native_str: added special TypeErrors for None, other small tweaks
Diffstat (limited to 'passlib/tests')
-rw-r--r--passlib/tests/test_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/passlib/tests/test_utils.py b/passlib/tests/test_utils.py
index 734479b..eedb7e0 100644
--- a/passlib/tests/test_utils.py
+++ b/passlib/tests/test_utils.py
@@ -360,7 +360,7 @@ class CodecTest(TestCase):
b('\x00\xc3\xbf'))
#check bytes transcoding
- self.assertEqual(to_bytes(b('\x00\xc3\xbf'), "latin-1", "utf-8"),
+ self.assertEqual(to_bytes(b('\x00\xc3\xbf'), "latin-1", "", "utf-8"),
b('\x00\xff'))
#check other