anvil/tests/test_passwords.py
Doug Hellmann 0018c7cccf Move the password generation logic to its own class and out of the config
parser to cut down on the number of places that have component-specific
configuration knowledge.

Add a --no-prompt-passwords flag to stack for users that want
auto-generated passwords without having to press enter for each
one.

Pork:
- Ignore the emacs TAGS file.
2012-03-12 18:31:57 -04:00

11 lines
205 B
Python

from devstack import passwords
def test_generate_random():
def check_one(i):
p = passwords.generate_random(i)
assert len(p) == i
for i in range(1, 9):
yield check_one, i