test_the_sequence_diagram_is_uml_proper

Tests › tests/test_wiki_site.py

passed Passed in the packaged run.

What this test is for

Given

  1. page = _flow_page(site)
  2. start = page.index('<svg class="seq"')
  3. svg = page[start : page.index("</svg>", start)]
→

When

  1. —
→

Then

  1. ✓ svg contains 'class="act"'
  2. ✓ svg contains 'class="ret"'
  3. ✓ svg contains 'class="frame"'
  4. ✓ svg contains ">loop<"
  5. ✓ re.findall(r'class="num"[^>]*>(\d+)<', svg) equals ["1", "2"]
  6. ✓ svg contains ">parse<"
  7. ✓ svg contains ">finish<"
  8. ✓ svg.count('class="head"') equals 2 * svg.count('class="lane"')

tests/test_wiki_site.py:387 · its file's page

What it checks (5)

  1. assert 'class="act"' in svg and 'class="ret"' in svg not attributed
  2. assert 'class="frame"' in svg and ">loop<" in svg not attributed
  3. assert re.findall(r'class="num"[^>]*>(\d+)<', svg) == ["1", "2"] not attributed
  4. assert ">parse<" in svg and ">finish<" in svg not attributed
  5. assert svg.count('class="head"') == 2 * svg.count('class="lane"') not attributed

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

test_the_sequence_diagram_is_uml_proper→_flow_page

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.

Requirements it verifies (15)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-011catalogunknown
REQ-DDB-WIKI-012catalogunknown
REQ-DDB-WIKI-013catalogunknown
REQ-DDB-WIKI-014catalogunknown
REQ-DDB-WIKI-015catalogunknown
REQ-DDB-WIKI-018catalogunknown
REQ-DDB-WIKI-020catalogunknown
REQ-DDB-WIKI-021catalogunknown
REQ-DDB-WIKI-022catalogunknown
REQ-DDB-WIKI-023catalogunknown
REQ-DDB-WIKI-025catalogunknown
REQ-DDB-WIKI-031catalogunknown
REQ-DDB-WIKI-044catalogunknown
REQ-DDB-WIKI-050catalogunknown
REQ-DDB-WIKI-052catalogunknown