diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2016-11-10 20:22:40 -0500 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2016-11-10 20:22:40 -0500 |
commit | 0ab6f03f51413a0bfc031a42953311023602c3a9 (patch) | |
tree | be414b126fa9a19cc76171b4797ad8907e70058d | |
parent | d635c637c39f49b3168af8182ede4ef67df89c73 (diff) | |
download | passlib-0ab6f03f51413a0bfc031a42953311023602c3a9.tar.gz |
bugfix: tests.test_pwd: missed rename of predefined charset
-rw-r--r-- | passlib/tests/test_pwd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/passlib/tests/test_pwd.py b/passlib/tests/test_pwd.py index 3386393..6f6a9a5 100644 --- a/passlib/tests/test_pwd.py +++ b/passlib/tests/test_pwd.py @@ -58,7 +58,7 @@ class UtilsTest(TestCase): # import subject from passlib.pwd import genword, default_charsets -ascii62 = default_charsets['ascii62'] +ascii_62 = default_charsets['ascii_62'] hex = default_charsets['hex'] class WordGeneratorTest(TestCase): @@ -88,12 +88,12 @@ class WordGeneratorTest(TestCase): """'returns' keyword""" # returns=int option results = genword(returns=5000) - self.assertResultContents(results, 5000, ascii62) + self.assertResultContents(results, 5000, ascii_62) # returns=iter option gen = genword(returns=iter) results = [next(gen) for _ in range(5000)] - self.assertResultContents(results, 5000, ascii62) + self.assertResultContents(results, 5000, ascii_62) # invalid returns option self.assertRaises(TypeError, genword, returns='invalid-type') |