mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-16 06:24:12 +02:00
Running black for formatting
This commit is contained in:
parent
bb1e7bdf78
commit
f0acb978b9
1 changed files with 7 additions and 8 deletions
|
@ -708,7 +708,7 @@ class TestRegistrantContacts(MockEppLib):
|
||||||
def test_not_disclosed_on_other_contacts(self):
|
def test_not_disclosed_on_other_contacts(self):
|
||||||
"""
|
"""
|
||||||
Scenario: Registrant creates a new domain with multiple contacts
|
Scenario: Registrant creates a new domain with multiple contacts
|
||||||
When `domain` has registrant, admin, technical,
|
When `domain` has registrant, admin, technical,
|
||||||
and security contacts
|
and security contacts
|
||||||
Then Domain sends `commands.CreateContact` to the registry
|
Then Domain sends `commands.CreateContact` to the registry
|
||||||
And the field `disclose` is set to false for DF.EMAIL
|
And the field `disclose` is set to false for DF.EMAIL
|
||||||
|
@ -732,16 +732,15 @@ class TestRegistrantContacts(MockEppLib):
|
||||||
expected_admin,
|
expected_admin,
|
||||||
expected_registrant,
|
expected_registrant,
|
||||||
expected_security,
|
expected_security,
|
||||||
expected_tech
|
expected_tech,
|
||||||
]
|
]
|
||||||
|
|
||||||
for contact in contacts:
|
for contact in contacts:
|
||||||
is_security = contact.contact_type == "security"
|
is_security = contact.contact_type == "security"
|
||||||
expectedCreateCommand = self._convertPublicContactToEpp(
|
expectedCreateCommand = self._convertPublicContactToEpp(
|
||||||
contact,
|
contact, disclose_email=is_security
|
||||||
disclose_email=is_security
|
|
||||||
)
|
)
|
||||||
|
|
||||||
self.mockedSendFunction.assert_any_call(expectedCreateCommand, cleaned=True)
|
self.mockedSendFunction.assert_any_call(expectedCreateCommand, cleaned=True)
|
||||||
|
|
||||||
def test_not_disclosed_on_default_security_contact(self):
|
def test_not_disclosed_on_default_security_contact(self):
|
||||||
|
@ -755,13 +754,13 @@ class TestRegistrantContacts(MockEppLib):
|
||||||
domain, _ = Domain.objects.get_or_create(name="defaultsecurity.gov")
|
domain, _ = Domain.objects.get_or_create(name="defaultsecurity.gov")
|
||||||
expectedSecContact = PublicContact.get_default_security()
|
expectedSecContact = PublicContact.get_default_security()
|
||||||
expectedSecContact.domain = domain
|
expectedSecContact.domain = domain
|
||||||
expectedSecContact.registry_id="defaultSec"
|
expectedSecContact.registry_id = "defaultSec"
|
||||||
domain.security_contact = expectedSecContact
|
domain.security_contact = expectedSecContact
|
||||||
|
|
||||||
expectedCreateCommand = self._convertPublicContactToEpp(
|
expectedCreateCommand = self._convertPublicContactToEpp(
|
||||||
expectedSecContact, disclose_email=False
|
expectedSecContact, disclose_email=False
|
||||||
)
|
)
|
||||||
|
|
||||||
self.mockedSendFunction.assert_any_call(expectedCreateCommand, cleaned=True)
|
self.mockedSendFunction.assert_any_call(expectedCreateCommand, cleaned=True)
|
||||||
# Confirm that we are getting a default email
|
# Confirm that we are getting a default email
|
||||||
self.assertEqual(domain.security_contact.email, expectedSecContact.email)
|
self.assertEqual(domain.security_contact.email, expectedSecContact.email)
|
||||||
|
@ -783,7 +782,7 @@ class TestRegistrantContacts(MockEppLib):
|
||||||
expectedCreateCommand = self._convertPublicContactToEpp(
|
expectedCreateCommand = self._convertPublicContactToEpp(
|
||||||
expectedSecContact, disclose_email=True
|
expectedSecContact, disclose_email=True
|
||||||
)
|
)
|
||||||
|
|
||||||
self.mockedSendFunction.assert_any_call(expectedCreateCommand, cleaned=True)
|
self.mockedSendFunction.assert_any_call(expectedCreateCommand, cleaned=True)
|
||||||
# Confirm that we are getting the desired email
|
# Confirm that we are getting the desired email
|
||||||
self.assertEqual(domain.security_contact.email, expectedSecContact.email)
|
self.assertEqual(domain.security_contact.email, expectedSecContact.email)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue