'Test a round trip with a real QDataStream.'

def test_round_trip_real_stream(self):

    src_obj = QPoint(23, 42)
    dest_obj = QPoint()
    data = QByteArray()
    write_stream = QDataStream(data, QIODevice.WriteOnly)
    qtutils.serialize_stream(write_stream, src_obj)
    read_stream = QDataStream(data, QIODevice.ReadOnly)
    qtutils.deserialize_stream(read_stream, dest_obj)
    assert (src_obj == dest_obj)
