codex-python / fixtures /pattern_lab /tests /test_widgets.py
tailot's picture
Upload folder using huggingface_hub
f4952b6 verified
Raw History Blame Contribute Delete
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