コード例 #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')
コード例 #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')
コード例 #3
0
 def test_redact_one_email_with_bracket(self):
     self.assertEqual(AllocationRequest.redact_all_emails(
         'Please contact [email protected])'),
         'Please contact [XXXX])')
コード例 #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')
コード例 #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')
コード例 #6
0
 def test_redact_one_email_with_bracket(self):
     self.assertEqual(
         AllocationRequest.redact_all_emails(
             'Please contact [email protected])'),
         'Please contact [XXXX])')
コード例 #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')
コード例 #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')