From 863232be7927b6b3960f1bc957c993bb1f067f0b Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Mon, 19 Aug 2013 10:15:15 -0700 Subject: [PATCH] Update tests for change in password type. --- tests/types/test_password.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/types/test_password.py b/tests/types/test_password.py index 5b1907b..2210e9c 100644 --- a/tests/types/test_password.py +++ b/tests/types/test_password.py @@ -75,7 +75,7 @@ class TestPasswordType(TestCase): from passlib.hash import pbkdf2_sha512 - impl = inspect(self.User).c.password.type.impl + kind = inspect(self.User).c.password.type # name + rounds + salt + hash + ($ * 4) of largest hash expected_length = len(pbkdf2_sha512.name) @@ -84,7 +84,7 @@ class TestPasswordType(TestCase): expected_length += pbkdf2_sha512.encoded_checksum_size expected_length += 4 - assert impl.length == expected_length + assert kind.length == expected_length def test_without_schemes(self): assert PasswordType(schemes=[]).length == 1024