user
Create a test suite in Python to check if an input string is a valid email address.
assistant

import re

def test_suite():
    test_cases = ["a.b@example.com", "99@example.com", "user@example.co.uk", "test@test.test", "jane.doe@example.org", 
                    "abc123@example.com", "user123@example.com.au", "invalid@example.com_"]
    valid_email_regex = '^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$'
    for test_case in test_cases:
        if re.match(valid_email_regex, test_case):
            print(f"{test_case} is a valid email address.")
        else:
            print(f"{test_case} is not a valid email address.")
    
if __name__ == "__main__":
    test_suite()