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