def test_055_check_admin_pwd_upper_lower(self): u"""admin密码的大小写验证(testlink_ID:885)""" log.debug('055') tmp = AccessBusiness(self.driver) result = tmp.check_admin_pwd_different(data_login['all'],\ data_login['letter_pwd'],data_login['letter_pwd'].upper()) assert result == (u"密码必须一致" or "Passwords must match"),\ "ipunt admin pwd is lower and upper,test fail!" print "ipunt admin pwd is lower and upper,test pass!"
def test_051_check_admin_pwd_different(self): u"""修改admin密码时输入两次不一致的新密码(testlink_ID:883)""" log.debug('051') tmp = AccessBusiness(self.driver) result = tmp.check_admin_pwd_different(data_login['all'],data_login['digital_pwd'],\ data_login['letter_pwd']) assert result == (u"密码必须一致" or "Passwords must match"),\ "when changing admin pwd,input twice pwd different,test fail!" print "when changing admin pwd,input twice pwd different,test pass!"