def test_redact_two_emails_in_field(self): self.assertEqual( AllocationRequest.redact_all_emails( 'Please contact [email protected] ' 'or [email protected] for more information'), 'Please contact [XXXX] ' 'or [XXXX] for more information')
def test_redact_two_emails_in_field(self): self.assertEqual(AllocationRequest.redact_all_emails( 'Please contact [email protected] ' 'or [email protected] for more information'), 'Please contact [XXXX] ' 'or [XXXX] for more information')
def test_redact_one_email_with_bracket(self): self.assertEqual(AllocationRequest.redact_all_emails( 'Please contact [email protected])'), 'Please contact [XXXX])')
def test_redact_one_email(self): self.assertEqual(AllocationRequest.redact_all_emails( 'Please contact [email protected] for more information'), 'Please contact [XXXX] for more information')
def test_redact_no_emails(self): self.assertEqual(AllocationRequest.redact_all_emails( 'Please contact someone for more information'), 'Please contact someone for more information')
def test_redact_one_email_with_bracket(self): self.assertEqual( AllocationRequest.redact_all_emails( 'Please contact [email protected])'), 'Please contact [XXXX])')
def test_redact_one_email(self): self.assertEqual( AllocationRequest.redact_all_emails( 'Please contact [email protected] for more information' ), 'Please contact [XXXX] for more information')
def test_redact_no_emails(self): self.assertEqual( AllocationRequest.redact_all_emails( 'Please contact someone for more information'), 'Please contact someone for more information')