Download fixtures/pattern_lab/tests/test_labels.py from tailot/codex-python: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/datasets/tailot/codex-python/resolve/main/fixtures/pattern_lab/tests/test_labels.py
- Command line
-
hf download hf://datasets/tailot/codex-python/fixtures/pattern_lab/tests/test_labels.py
-
curl -L -o test_labels.py https://huggingface.co/datasets/tailot/codex-python/resolve/main/fixtures/pattern_lab/tests/test_labels.py
376 Bytes
| """Tests for the two comparison shapes in src.labels.""" | |
| from src.labels import is_missing, label_for | |
| def test_label_for_names_a_given_value() -> None: | |
| assert label_for("note") == "given" | |
| assert label_for(None) == "none" | |
| assert label_for("") == "blank" | |
| def test_is_missing_answers_for_none() -> None: | |
| assert is_missing(None) | |
| assert not is_missing("") | |