def test_nick_validator_invalid_nicks(nick): with pytest.raises(ValidationError): nick_validator(nick)
def test_nick_validator_valid_nicks(nick): assert nick_validator(nick) is None
def test_nick_validator_invalid_nicks(nick): with pytest.raises(ValidationError): nick_validator(nick)
def test_nick_validator_valid_nicks(nick): assert nick_validator(nick) is None