3
SÉLjAV ã @ s( d Z dZddlZddlZddlZddlZddlZddlZddlZddl Z yddl
ZW n ek
rp ddlZY nX ye
W n ek
r– dd„ Z
Y nX ddlmZ ddlmZ ddlmZ dd lmZ dd
lmZ ddlmZ ddlmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ej �rXe!Z"dd„ Z#dd„ Z$dd„ Z%dd„ Z&ej'Z'ej(defdefƒG dd „ d e'ƒƒZ)G d!d"„ d"e'ƒZ*G d#d$„ d$e'ƒZ+G d%d&„ d&e'ƒZ,G d'd(„ d(e'ƒZ-ej.ej/ƒ d)k�püej0d0k d,ƒG d-d.„ d.e'ƒƒZ1e2d/k�r$ej3ƒ dS )1aœ Tests python protocol buffers against the golden message.
Note that the golden messages exercise every known field type, thus this
test ends up exercising and verifying nearly all of the parsing and
serialization code in the whole library.
TODO(kenton): Merge with wire_format_test? It doesn't make a whole lot of
sense to call this a test of the "message" module, which only declares an
abstract interface.
z!gps@google.com (Gregory P. Smith)é Nc C s | |k| |k S )N© )ÚxÚyr r ú"/usr/lib/python3.6/message_test.pyÚ