File: test_licenses.py

package info (click to toggle)
python-packaging 25.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,716 kB
  • sloc: python: 8,071; makefile: 130; sh: 35
file content (11 lines) | stat: -rw-r--r-- 288 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
from packaging.licenses._spdx import EXCEPTIONS, LICENSES


def test_licenses():
    for license_id in LICENSES.keys():
        assert license_id == license_id.lower()


def test_exceptions():
    for exception_id in EXCEPTIONS.keys():
        assert exception_id == exception_id.lower()