@pytest.mark.parametrize('url_text', ['http://abc123.com/this/awesome/url.html', 'https://supersecret.gov/nsa/files.txt', None])
def test_set_hover_url(url_widget, url_text):
 url_widget.set_hover_url(url_text)
 if (url_text is not None):
  assert (url_widget.text() == url_text)
  assert (url_widget._urltype == url.UrlType.hover)
 else:
  assert (url_widget.text() == '')
  assert (url_widget._urltype == url.UrlType.normal)

@ pytest . mark . parametrize ( 'url_text' , [ 'http://abc123.com/this/awesome/url.html' , 'https://supersecret.gov/nsa/files.txt' , None ] ) def test_set_hover_url ( url_widget , url_text ) : url_widget . set_hover_url ( url_text ) if ( url_text is not None ) : assert ( url_widget . text ( ) == url_text ) assert ( url_widget . _urltype == url . UrlType . hover ) else : assert ( url_widget . text ( ) == '' ) assert ( url_widget . _urltype == url . UrlType . normal )
test text when hovering over a link .