google / it-cert-automation-practice

Google IT Automation with Python Professional Certificate - Practice files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validations.py (Class3/Lab4) validates invalid usernames

mmehr2 opened this issue · comments

Expected Behavior

Return False when invalid username is passed

Actual Behavior

Returns True for username that starts with a number, dot, or underscore

Steps to Reproduce the Problem

  1. Test the function with input that starts with a number, dot, or underscore
  2. The return value is True instead of False

Specifications

The username must consist of letters, numbers, dots and underscores.
It must start with only a letter and be at least 1 character long.

  • Version: 1?
  • Platform: all