summaryrefslogtreecommitdiffstats
path: root/tests/users
diff options
context:
space:
mode:
Diffstat (limited to 'tests/users')
-rw-r--r--tests/users/views/test_domains.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/users/views/test_domains.py b/tests/users/views/test_domains.py
index 13d4b11..5752125 100644
--- a/tests/users/views/test_domains.py
+++ b/tests/users/views/test_domains.py
@@ -31,10 +31,16 @@ INVALID_DOMAINS = [
@pytest.mark.parametrize("domain", VALID_DOMAINS)
def test_domain_validation_accepts_valid_domains(domain):
+ """
+ Tests that the domain validator works in positive cases
+ """
DomainValidator()(domain)
@pytest.mark.parametrize("domain", INVALID_DOMAINS)
def test_domain_validation_raises_exception_for_invalid_domains(domain):
+ """
+ Tests that the domain validator works in negative cases
+ """
with pytest.raises(ValidationError):
DomainValidator()(domain)