示例#1
0
def test_user_email_check():
    """Ensure checking a user's email address works correctly."""
    user = User("Some_User", "Some_Password")
    user.email_address = "*****@*****.**"

    assert user.is_correct_email_address("*****@*****.**")

    assert not user.is_correct_email_address("*****@*****.**")
示例#2
0
def test_user_email_check_case_insensitive():
    """Ensure the user email address check isn't case-sensitive."""
    user = User("Some_User", "Some_Password")
    user.email_address = "*****@*****.**"

    assert user.is_correct_email_address("*****@*****.**")