Beispiel #1
0
 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')
Beispiel #2
0
 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')
Beispiel #3
0
 def test_redact_one_email_with_bracket(self):
     self.assertEqual(AllocationRequest.redact_all_emails(
         'Please contact [email protected])'),
         'Please contact [XXXX])')
Beispiel #4
0
 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')
Beispiel #5
0
 def test_redact_no_emails(self):
     self.assertEqual(AllocationRequest.redact_all_emails(
         'Please contact someone for more information'),
         'Please contact someone for more information')
Beispiel #6
0
 def test_redact_one_email_with_bracket(self):
     self.assertEqual(
         AllocationRequest.redact_all_emails(
             'Please contact [email protected])'),
         'Please contact [XXXX])')
Beispiel #7
0
 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')
Beispiel #8
0
 def test_redact_no_emails(self):
     self.assertEqual(
         AllocationRequest.redact_all_emails(
             'Please contact someone for more information'),
         'Please contact someone for more information')