A community workshop that runs weekend courses in pottery, joinery and bike repair is replacing its booking spreadsheet with a small Python module. You are writing its first tests.
Each task gives one function of that module and its contract. Decide which classes, boundaries and error paths matter before writing a test, then write exact assertions that use the module's constants. As before, your tests run against the correct function and two versions with one fault each, and hidden checks change the constants. The faults are new; nothing here repeats an earlier task's data.
Start from the contract: what are the classes, where are the limits, and what must stay unchanged after an error?