def test_no_active_item():
 items = [Item(QUrl(), '')]
 with pytest.raises(ValueError):
  tabhistory.serialize(items)

def test_no_active_item ( ) : items = [ Item ( QUrl ( ) , '' ) ] with pytest . raises ( ValueError ) : tabhistory . serialize ( items )
check tabhistory .