forgot one bit

This commit is contained in:
gammelon 2018-03-09 15:55:40 +01:00
parent 7e3c966afe
commit 0ce94dae1c

View File

@ -299,7 +299,7 @@ def test_get_search_url(config_stub, url, host, query, open_base_url):
"""
config_stub.val.url.open_base_url = open_base_url
url = urlutils._get_search_url(url)
if open_base_url and query == '':
if open_base_url and not query:
assert not url.path()
assert not url.fragment()