test_anonymizeip.py 241 B

123456789
  1. from sentry_plugins.anonymizeip import anonymize_ip
  2. def test_ipv6():
  3. assert anonymize_ip("5219:3a94:fdc5:19e1:70a3:b2c4:40ef:ae03") == "5219:3a94:fdc5::"
  4. def test_ipv4():
  5. assert anonymize_ip("192.168.128.193") == "192.168.128.0"