def METHOD_NAME(self) -> None:
    invalid_domains = [
        "",
        "test",
        "t.",
        "test.",
        ".com",
        "-test",
        "test...com",
        "test-",
        "test_domain.com",
        "test.-domain.com",
        "a" * 255 + ".com",
    ]
    for domain in invalid_domains:
        with self.assertRaises(ValidationError):
            validate_domain(domain)
    valid_domains = ["acme.com", "x-x.y.3.z"]
    for domain in valid_domains:
        validate_domain(domain)