Queer European MD passionate about IT

test_response.py 336 B

12345678910111213141516
  1. from response import validate_email
  2. def main():
  3. test_cs50p()
  4. def test_cs50p():
  5. assert validate_email("malan@harvard.edu")== True
  6. assert validate_email("info@cheznadi.com")== True
  7. assert validate_email("malan@@@harvard.edu")== False
  8. assert validate_email("info@cheznadi..com")== False
  9. if __name__ == "__main__":
  10. main()