def test_empty(empty_history):
 items = []
 (stream, _data, user_data) = tabhistory.serialize(items)
 qtutils.deserialize_stream(stream, empty_history)
 assert (empty_history.count() == 0)
 assert (empty_history.currentItemIndex() == 0)
 assert (not user_data)

def test_empty ( empty_history ) : items = [ ] ( stream , _data , user_data ) = tabhistory . serialize ( items ) qtutils . deserialize_stream ( stream , empty_history ) assert ( empty_history . count ( ) == 0 ) assert ( empty_history . currentItemIndex ( ) == 0 ) assert ( not user_data )
check tabhistory .