"""String utility tests.""" import pytest from utils import string @pytest.mark.parametrize('source, cleaned', [ ('Hello\u0014', 'Hello'), ('Hello\u0019', 'Hello'), (None, None) ]) def test_cleanup_unicode(source, cleaned): """Test unicode cleanup.""" assert cleaned == string.cleanup_unicode(source)