File size: 195 Bytes
6b53875
 
 
 
 
1
2
3
4
5
6
from privacy.redactor import redact
def test_redactor_basic():
    s = "Contact me at [email protected] or +1 (415) 555-1234"
    out = redact(s)
    assert "<email:" in out and "<phone:" in out