@pytest.mark.parametrize('url1, url2', [('http://example.com', ''), ('', 'http://example.com')])
def test_same_domain_invalid_url(url1, url2):
 with pytest.raises(urlutils.InvalidUrlError):
  urlutils.same_domain(QUrl(url1), QUrl(url2))

@ pytest . mark . parametrize ( 'url1, url2' , [ ( 'http://example.com' , '' ) , ( '' , 'http://example.com' ) ] ) def test_same_domain_invalid_url ( url1 , url2 ) : with pytest . raises ( urlutils . InvalidUrlError ) : urlutils . same_domain ( QUrl ( url1 ) , QUrl ( url2 ) )
test same_domain with invalid urls .