Ejemplo n.º 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')
Ejemplo n.º 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')
Ejemplo n.º 3
0
 def test_redact_one_email_with_bracket(self):
     self.assertEqual(AllocationRequest.redact_all_emails(
         'Please contact [email protected])'),
         'Please contact [XXXX])')
Ejemplo n.º 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')
Ejemplo n.º 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')
Ejemplo n.º 6
0
 def test_redact_one_email_with_bracket(self):
     self.assertEqual(
         AllocationRequest.redact_all_emails(
             'Please contact [email protected])'),
         'Please contact [XXXX])')
Ejemplo n.º 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')
Ejemplo n.º 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')