Skip to content

Commit

Permalink
Test domain field on RelayAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
say-yawn committed Aug 12, 2021
1 parent c7ac965 commit 1c76a38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions emails/tests/models_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ def test_make_relay_address_non_premium_user_cannot_pass_limit(self):
return
self.fail("Should have raised CannotMakeSubdomainException")

def test_make_relay_address_with_specified_domain(self):
relay_address = RelayAddress.make_relay_address(self.user_profile, domain='domain.com')
assert relay_address.domain == 'domain.com'

def test_delete_adds_deleted_address_object(self):
relay_address = baker.make(RelayAddress)
address_hash = sha256(
Expand Down

0 comments on commit 1c76a38

Please sign in to comment.