Changeset View
Changeset View
Standalone View
Standalone View
swh/web/tests/api/test_apidoc.py
Show First 20 Lines • Show All 476 Lines • ▼ Show 20 Lines | second_link = textwrap.indent( | ||||
"</a>" | "</a>" | ||||
), | ), | ||||
" " * 9, | " " * 9, | ||||
) | ) | ||||
third_link = textwrap.indent( | third_link = textwrap.indent( | ||||
( | ( | ||||
'<a class="reference external" ' | '<a class="reference external" ' | ||||
'href="https:/archive.softwareheritage.org">\n' | 'href="https://archive.softwareheritage.org">\n' | ||||
" archive\n" | " archive\n" | ||||
"</a>" | "</a>" | ||||
), | ), | ||||
" " * 9, | " " * 9, | ||||
) | ) | ||||
assert first_link in html | assert first_link in html | ||||
assert second_link in html | assert second_link in html | ||||
assert third_link in html | assert third_link in html |