File: test_utils.py

package info (click to toggle)
python-directv 0.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 324 kB
  • sloc: python: 1,067; sh: 5; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 430 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Tests for DirecTV Helpers."""
import directv.utils as utils


def test_combine_channel_number() -> None:
    """Test the merging of channel numbers."""
    assert utils.combine_channel_number(231, 65535) == "231"
    assert utils.combine_channel_number(231, 1) == "231-1"


def test_parse_channel_number() -> None:
    """Test the parsing of channel numbers."""
    assert utils.parse_channel_number("231") == ("231", "65535")