@pytest.mark.parametrize('obj', [QPoint(23, 42), QUrl('http://www.qutebrowser.org/')])
def test_serialize(obj):
 new_obj = type(obj)()
 qtutils.deserialize(qtutils.serialize(obj), new_obj)
 assert (new_obj == obj)

@ pytest . mark . parametrize ( 'obj' , [ QPoint ( 23 , 42 ) , QUrl ( 'http://www.qutebrowser.org/' ) ] ) def test_serialize ( obj ) : new_obj = type ( obj ) ( ) qtutils . deserialize ( qtutils . serialize ( obj ) , new_obj ) assert ( new_obj == obj )
test a serialize/deserialize round trip .