MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / has_only_lower_license_keys

Function has_only_lower_license_keys

src/licensedcode/models.py:2227–2234  ·  view source on GitHub ↗

Return True if all license keys of ``license_expression`` are lowercase.

(license_expression, licensing=Licensing())

Source from the content-addressed store, hash-verified

2225
2226
2227def has_only_lower_license_keys(license_expression, licensing=Licensing()):
2228 """
2229 Return True if all license keys of ``license_expression`` are lowercase.
2230 """
2231 return all(
2232 k == k.lower()
2233 for k in licensing.license_keys(license_expression, unique=False)
2234 )
2235
2236
2237def check_is_list_of_strings(l):

Callers 1

validateMethod · 0.85

Calls 1

license_keysMethod · 0.80

Tested by

no test coverage detected