# Path: badwolf/utils.py
# def sanitize_sensitive_data(s):
#     return _sanitize_urls(s)


from badwolf.utils import sanitize_sensitive_data
# -*- coding: utf-8 -*-


def test_sanitize_basic_auth_urls():
    text = 'abc http://user:pwd@example.com def'
    sanitized = sanitize_sensitive_data(text)
    assert 'user' not in sanitized
    assert 'pwd' not in sanitized
    assert 'http://***:***@example.com' in sanitized

    text = '''abc
    http://user:pwd@example.com

    def
    '''

# Path: badwolf/utils.py
# def sanitize_sensitive_data(s):
#     return _sanitize_urls(s)


# Path: tests/test_utils.py
from badwolf.utils import sanitize_sensitive_data

# -*- coding: utf-8 -*-


def test_sanitize_basic_auth_urls():
    text = 'abc http://user:pwd@example.com def'
    sanitized = sanitize_sensitive_data(text)
    assert 'user' not in sanitized
    assert 'pwd' not in sanitized
    assert 'http://***:***@example.com' in sanitized

    text = '''abc
    http://user:pwd@example.com

    def
    '''

    sanitized = sanitize_sensitive_data(text)