This commit is contained in:
zandercymatics 2023-10-05 10:53:50 -06:00
parent c902d08aae
commit b9022b622c
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -204,13 +204,9 @@ class TestDomainCache(MockEppLib):
domain, _ = Domain.objects.get_or_create(name="registry.gov") domain, _ = Domain.objects.get_or_create(name="registry.gov")
fakedEpp = self.fakedEppObject() fakedEpp = self.fakedEppObject()
invalid_length = fakedEpp.dummyInfoContactResultData( invalid_length = fakedEpp.dummyInfoContactResultData(
"Cymaticsisasubsetofmodalvibrationalphenomena", "Cymaticsisasubsetofmodalvibrationalphenomena", "lengthInvalid@mail.gov"
"lengthInvalid@mail.gov"
)
valid_object = fakedEpp.dummyInfoContactResultData(
"valid",
"valid@mail.gov"
) )
valid_object = fakedEpp.dummyInfoContactResultData("valid", "valid@mail.gov")
desired_error = ContactErrorCodes.CONTACT_ID_INVALID_LENGTH desired_error = ContactErrorCodes.CONTACT_ID_INVALID_LENGTH
with self.assertRaises(ContactError) as context: with self.assertRaises(ContactError) as context: