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

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