Update test_models_domain.py

This commit is contained in:
zandercymatics 2023-10-20 08:04:21 -06:00
parent 94a8bf7793
commit d5b47a22df
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -827,10 +827,11 @@ class TestRegistrantContacts(MockEppLib):
# Separated for linter # Separated for linter
disclose_email_field = {common.DiscloseField.EMAIL} disclose_email_field = {common.DiscloseField.EMAIL}
disclose = common.Disclose(flag=True, fields=disclose_email_field, types=None),
expected_disclose = { expected_disclose = {
"auth_info": common.ContactAuthInfo(pw='2fooBAR123fooBaz'), "auth_info": common.ContactAuthInfo(pw="2fooBAR123fooBaz"),
"disclose": disclose, "disclose": common.Disclose(
flag=True, fields=disclose_email_field, types=None
),
"email": "dotgov@cisa.dhs.gov", "email": "dotgov@cisa.dhs.gov",
"extensions": [], "extensions": [],
"fax": None, "fax": None,
@ -838,26 +839,27 @@ class TestRegistrantContacts(MockEppLib):
"ident": None, "ident": None,
"notify_email": None, "notify_email": None,
"postal_info": common.PostalInfo( "postal_info": common.PostalInfo(
name='Registry Customer Service', name="Registry Customer Service",
addr=common.ContactAddr( addr=common.ContactAddr(
street=['4200 Wilson Blvd.', None, None], street=["4200 Wilson Blvd.", None, None],
city='Arlington', city="Arlington",
pc='22201', pc="22201",
cc='US', cc="US",
sp='VA' sp="VA",
), ),
org='Cybersecurity and Infrastructure Security Agency', org="Cybersecurity and Infrastructure Security Agency",
type='loc' type="loc",
), ),
"vat": None, "vat": None,
"voice": "+1.8882820870" "voice": "+1.8882820870",
} }
# Separated for linter # Separated for linter
not_disclose = common.Disclose(flag=False, fields=disclose_email_field, types=None)
expected_not_disclose = { expected_not_disclose = {
"auth_info": common.ContactAuthInfo(pw='2fooBAR123fooBaz'), "auth_info": common.ContactAuthInfo(pw="2fooBAR123fooBaz"),
"disclose": not_disclose, "disclose": common.Disclose(
flag=False, fields=disclose_email_field, types=None
),
"email": "dotgov@cisa.dhs.gov", "email": "dotgov@cisa.dhs.gov",
"extensions": [], "extensions": [],
"fax": None, "fax": None,
@ -865,19 +867,19 @@ class TestRegistrantContacts(MockEppLib):
"ident": None, "ident": None,
"notify_email": None, "notify_email": None,
"postal_info": common.PostalInfo( "postal_info": common.PostalInfo(
name='Registry Customer Service', name="Registry Customer Service",
addr=common.ContactAddr( addr=common.ContactAddr(
street=['4200 Wilson Blvd.', None, None], street=["4200 Wilson Blvd.", None, None],
city='Arlington', city="Arlington",
pc='22201', pc="22201",
cc='US', cc="US",
sp='VA' sp="VA",
), ),
org='Cybersecurity and Infrastructure Security Agency', org="Cybersecurity and Infrastructure Security Agency",
type='loc' type="loc",
), ),
"vat": None, "vat": None,
"voice": "+1.8882820870" "voice": "+1.8882820870",
} }
# Set the ids equal, since this value changes # Set the ids equal, since this value changes