test_new_thread_kinds_are_registered_in_the_vocabulary

Tests › tests/test_python_ast.py

passed Passed in the packaged run.

What this test is for

Why it exists

Both new kinds must be real vocabulary members, so the `threads.kind` CHECK accepts them and a declared manifest can validate against them.

Given

  1. —
→

When

  1. —
→

Then

  1. ✓ THREAD_KIND contains kind
  2. ✓ THREAD_KIND.validated(kind, owner="test", field="kind") equals kind

tests/test_python_ast.py:814 · its file's page

What it checks (2)

  1. assert kind in THREAD_KIND not attributed
  2. assert THREAD_KIND.validated(kind, owner="test", field="kind") == kind not attributed

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

Also reaches 1 requirement

Its run touches their code; that is reach, not proof.