Skip to content

Commit

Permalink
Fix a functional test bytestring comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyChris authored and jgmize committed Jun 29, 2019
1 parent 8cd27d9 commit 9affad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/test_link_hreflang_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ def test_link_hreflang_tags(url, locales, base_url):
full_url = '{}/{}{}'.format(base_url, locale, url)
link_url = '{}/{}{}'.format('https://www.mozilla.org', locale, url)
resp = requests.get(full_url, timeout=5)
assert LINK_TEMPLATE.format(url=link_url) in resp.content
assert LINK_TEMPLATE.format(url=link_url).encode('utf-8') in resp.content

0 comments on commit 9affad1

Please sign in to comment.