File: test_tools.py

package info (click to toggle)
url-normalize 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 268 kB
  • sloc: python: 935; makefile: 16; sh: 8
file content (12 lines) | stat: -rw-r--r-- 322 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
"""Tools module tests."""

from __future__ import annotations

from url_normalize.tools import force_unicode


def test_force_unicode_with_bytes() -> None:
    """Test force_unicode handles bytes input correctly."""
    test_bytes = b"hello world"
    result = force_unicode(test_bytes)
    assert result == "hello world"