Download fixtures/pattern_lab/tests/test_widgets.py from tailot/codex-python: direct link, hf CLI and curl.
- Browser
- Download file 404 Bytes
-
https://huggingface.co/datasets/tailot/codex-python/resolve/main/fixtures/pattern_lab/tests/test_widgets.py
- Command line
-
hf download hf://datasets/tailot/codex-python/fixtures/pattern_lab/tests/test_widgets.py
-
curl -L -o test_widgets.py https://huggingface.co/datasets/tailot/codex-python/resolve/main/fixtures/pattern_lab/tests/test_widgets.py
404 Bytes
| """Tests for the three constructors in src.widgets.""" | |
| from src.widgets import Box, Grille, Shutter | |
| def test_box_reports_a_square_area() -> None: | |
| assert Box().area() == 16 | |
| def test_box_starts_open() -> None: | |
| assert Box().closed is False | |
| def test_shutter_starts_closed() -> None: | |
| assert Shutter().open is False | |
| def test_grille_keeps_its_bars() -> None: | |
| assert Grille(3).bars == 3 | |