项目作者: Shalom91

项目描述 :
TDD error-checking project.
高级语言: Python
项目地址: git://github.com/Shalom91/Password-Checker.git
创建时间: 2019-12-11T14:59:33Z
项目社区:https://github.com/Shalom91/Password-Checker

开源协议:

下载


Instructions

password_is_valid will check if the password meets a few different conditions. If one of the below conditions is not met then the relevant error/exception should be thrown/raised. Your error/exception message should match one of the following conditions exactly (word-for-word).

  • password should exist
  • password should be longer than than 8 characters
  • password should have at least one lowercase letter
  • password should have at least one uppercase letter
  • password should at least have one digit
  • password should have at least one special character

Next, implement a function called password is ok:

  • If the given password meets at least three of the conditions listed above then this function should return true, otherwise it should return false.

  • Add a feature: the password is never OK if conditions 1 and 2 are not met.