{% comment %} Renders expected/actual values for an assertion using pills (lists), tables (dicts), or plain text. Variables: a (required) — assertion dict with expected, actual, expected_items, actual_items, expected_entries, actual_entries {% endcomment %}
Expected {% if a.expected_items %}
{% for item in a.expected_items %} {{ item }} {% endfor %}
{% elif a.expected_entries %} {% for entry in a.expected_entries %} {% endfor %}
ParameterValue
{{ entry.param }} {{ entry.value }}
{% else %} {{ a.expected }} {% endif %}
Actual {% if a.actual_items %}
{% for item in a.actual_items %} {{ item }} {% endfor %}
{% elif a.actual_entries %} {% for entry in a.actual_entries %} {% endfor %}
ParameterValue
{{ entry.param }} {{ entry.value }}
{% else %} {{ a.actual }} {% endif %}