1
0
Fork 0

when checking link invariants, check for regex match as well

This commit is contained in:
Nick Sweeting 2019-02-27 04:50:21 -05:00
parent fa6f53f2af
commit b4dc80b0a7

View file

@ -677,6 +677,7 @@ def check_link_structure(link):
assert isinstance(link, dict)
assert isinstance(link.get('url'), str)
assert len(link['url']) > 2
assert len(re.findall(URL_REGEX, link['url'])) == 1
def check_links_structure(links):