Spaces:
Sleeping
Sleeping
Download tests/test_case_number_pattern_contract.py from solidprivacy/scrub: direct link, hf CLI and curl.
- Browser
- Download file 575 Bytes
-
https://huggingface.co/spaces/solidprivacy/scrub/resolve/4bcef50dc3f7657708c9c677cb8471860c0cb9ad/tests/test_case_number_pattern_contract.py
- Command line
-
hf download hf://spaces/solidprivacy/scrub@4bcef50dc3f7657708c9c677cb8471860c0cb9ad/tests/test_case_number_pattern_contract.py
-
curl -L -o test_case_number_pattern_contract.py https://huggingface.co/spaces/solidprivacy/scrub/resolve/4bcef50dc3f7657708c9c677cb8471860c0cb9ad/tests/test_case_number_pattern_contract.py
575 Bytes
| from candidate_scanner import CONTEXTUAL_VALUE_RE | |
| from test_cases.legal_regression_cases import CASE_NUMBER_EXAMPLES | |
| def test_known_case_number_shapes_match_contextual_reference_value_regex(): | |
| """Case-number values include formal shapes and context-bound admin codes. | |
| GEM-HLM-2026-2210 is a zaaknummer because the surrounding label says so, | |
| even though the raw value has a generic administrative-code shape. | |
| """ | |
| for value in CASE_NUMBER_EXAMPLES: | |
| assert CONTEXTUAL_VALUE_RE.fullmatch(value), f"Case/reference value shape should match: {value}" | |