Coverage for tests/test_genpw.py : 100%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# Copyright (C) 2020 Arrai Innovations Inc. - All Rights Reserved
2from unittest import TestCase
4from genpw import pronounceable_passwd
7class TestGenPW(TestCase):
8 def test_desired_length(self):
9 for x in range(256, 0, -1):
10 pwd = pronounceable_passwd(x)
11 self.assertGreaterEqual(len(pwd), 3)
12 self.assertLessEqual(len(pwd), max(x, 3))