- Every rule is a pytest test in its own function, in a file named
  test_*.py. The docstring is its first statement, one sentence:
      def test_an_empty_cart_totals_zero():
          """New: an empty cart totals zero."""
          assert total([]) == 0
- Example rule (a case the person stated): call the code with that input
  and assert the result the person gave. Keep the call and the expected
  value in the assert, so the check can show them.
- Refusal: one example per refusal, with the exception the person named:
      def test_a_negative_quantity_is_refused():
          """New: a negative quantity is refused with ValueError."""
          with pytest.raises(ValueError):
              add_item(cart(), "apple", -1)
- Any-input rule: a Hypothesis property, only for a rule over all inputs:
      @given(st.lists(st.integers(min_value=0)))
      def test_the_total_is_never_negative(prices):
          """New: the total of any prices is never negative."""
          assert total(prices) >= 0
- States-and-moves rule: a Hypothesis RuleBasedStateMachine whose class
  docstring is the rule; each allowed move is a @rule, what must hold
  after every move is an @invariant, and the test is its TestCase:
      class OrderLife(RuleBasedStateMachine):
          """New: a paid order can be shipped, never an unpaid one."""
          ...
      TestOrderLife = OrderLife.TestCase
- Guard: a test that passes today and must keep passing, docstring
  starting with "Guard:".
- Import the functions the rule is about from the project, even when they
  do not exist yet: a rule about a function the task adds is expected to
  fail to import before coding. Keep such rules in a file of their own,
  apart from the guards: a file that cannot be imported holds nothing.
