Пример #1
0
def test_contraseña_compleja():
    characters = string.ascii_letters + string.digits + string.punctuation
    assert (chr in RandomPasswordGenerator(15) for chr in characters)
Пример #2
0
def test_longitud_15():
    assert (len(RandomPasswordGenerator(15)) == 15)
Пример #3
0
def test_contraseña_contiene_caracteres_especiales():
    assert (chr in RandomPasswordGenerator(15) for chr in string.punctuation)
Пример #4
0
def test_contraseña_contiene_numeros():
    assert (chr in RandomPasswordGenerator(15) for chr in string.digits)
Пример #5
0
def test_contraseña_contiene_letras():
    assert (chr in RandomPasswordGenerator(15) for chr in string.ascii_letters)
Пример #6
0
def test_longitud_8():
    assert (len(RandomPasswordGenerator(8)) == 8)
Пример #7
0
def test_longitud_10():
    assert (len(RandomPasswordGenerator(10)) == 10)