@@ -43,7 +43,7 @@ def test_licenseLookup() -> None:
4343 """
4444 licenses = []
4545 for rawLicense in Path (f"{ THISDIR } /data/rawLicenses.txt" ).read_text ("utf-8" ).splitlines ():
46- licenseName = license_matrix .licenseLookup (rawLicense )._name_
46+ licenseName = license_matrix ._licenseLookup (rawLicense )._name_
4747 licenses .append (licenseName )
4848
4949 licenses .append ("NO_LICENSE" )
@@ -99,7 +99,7 @@ def test_whitelistedLicenseCompat() -> None:
9999
100100def test_warningsForIgnoredLicense (caplog : LogCaptureFixture ) -> None :
101101 zope = "ZOPE PUBLIC LICENSE"
102- license_matrix .licenseLookup (zope , set ())
102+ license_matrix ._licenseLookup (zope , set ())
103103 assert any (
104104 record .levelname == "WARNING"
105105 and f"'{ zope } ' License not identified so falling back to UNKNOWN" in record .message
@@ -109,5 +109,11 @@ def test_warningsForIgnoredLicense(caplog: LogCaptureFixture) -> None:
109109
110110def test_warningsForIgnoredLicenseIgnored (caplog : LogCaptureFixture ) -> None :
111111 zope = "ZOPE PUBLIC LICENSE"
112- license_matrix .licenseLookup (zope , {zope })
112+ license_matrix ._licenseLookup (zope , {zope })
113+ assert caplog .text == ""
114+
115+
116+ def test_warningsForIgnoredLicenseIgnored_lc (caplog : LogCaptureFixture ) -> None :
117+ zope = "ZOPE PUBLIC LICENSE"
118+ license_matrix ._licenseLookup (zope , {zope .lower ()})
113119 assert caplog .text == ""
0 commit comments