示例#1
0
def test_overall_no_symbol_password() :
    res =  server.pwdCheck('ZendeskSecTest2021')
    assert (res['password_ok'] == False and res['symbol_error'] == True) == True
示例#2
0
def test_overall_no_uppercase_password() :
    res =  server.pwdCheck('zendesksectest2021!')
    assert (res['password_ok'] == False and res['uppercase_error'] == True)== True
示例#3
0
def test_overall_no_lowercase_password() :
    res =  server.pwdCheck('ZENDESKSECTEST2021!')
    assert (res['password_ok'] == False and res['lowercase_error'] == True) == True
示例#4
0
def test_overall_no_digit_password() :
    res =  server.pwdCheck('ZendeskSecTest!')
    assert (res['password_ok'] == False and res['digit_error'] == True) == True
示例#5
0
def test_overall_short_password() :
    res =  server.pwdCheck('a^&=?Q4')
    assert (res['password_ok'] == False and res['length_error'] == True) == True
示例#6
0
def test_overall_common_password():
    res =  server.pwdCheck('password')
    assert (res['password_ok'] == False and res['common_pwd'] == True)  == True
示例#7
0
def test_overall_password_check_ok2():
    res =  server.pwdCheck('ZendeskSecTest2021@!')
    assert res['password_ok'] == True 
示例#8
0
def test_overall_password_check_ok1():
    res =  server.pwdCheck('a^&=?Q4w&5*qKS@h')
    assert res['password_ok'] == True