£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>

hc           @   s   d  Z  y d d l m Z Wn! e k
 r= d d l m Z n Xy d d l Z Wn e k
 rm d d l Z n Xd d l m Z d d l m	 Z	 d d l m
 Z
 d d l m Z d e j f d	     YZ e d
 k r e j   n  d S(   s(   Tests for google.protobuf.proto_builder.i(   t   OrderedDictN(   t   descriptor_pb2(   t   descriptor_pool(   t   proto_builder(   t   text_formatt   ProtoBuilderTestc           B   s,   e  Z d    Z d   Z d   Z d   Z RS(   c         C   sC   t  d t j j f d t j j f g  |  _ t |  j  |  _ d  S(   Nt   foot   bar(   R    R   t   FieldDescriptorProtot
   TYPE_INT64t   TYPE_STRINGt   ordered_fieldst   dictt   _fields(   t   self(    (    sO   /usr/lib/python2.7/site-packages/google/protobuf/internal/proto_builder_test.pyt   setUp3   s    c         C   sP   t  j |  j d d } |   } d | _ d | _ |  j d t j |   d S(   s&   Test that we can create a proto class.t	   full_names0   net.proto2.python.public.proto_builder_test.Testi90  t   asdfs   bar: "asdf"
foo: 12345
N(   R   t   MakeSimpleProtoClassR   R   R   t   assertMultiLineEqualR   t   MessageToString(   R   t	   proto_clst   proto(    (    sO   /usr/lib/python2.7/site-packages/google/protobuf/internal/proto_builder_test.pyt   testMakeSimpleProtoClass:   s    					c         C   sP   t  j |  j d d } |   } d | _ d | _ |  j d t j |   d S(   sB   Test that the field order is maintained when given an OrderedDict.R   s7   net.proto2.python.public.proto_builder_test.OrderedTesti90  R   s   foo: 12345
bar: "asdf"
N(   R   R   R   R   R   R   R   R   (   R   R   R   (    (    sO   /usr/lib/python2.7/site-packages/google/protobuf/internal/proto_builder_test.pyt   testOrderedFieldsE   s    					c         C   sb   t  j   } t j |  j d d d | } t j |  j d d d | } |  j | j | j  d S(   s%   Test that the DescriptorPool is used.R   s0   net.proto2.python.public.proto_builder_test.Testt   poolN(   R   t   DescriptorPoolR   R   R   t   assertIst
   DESCRIPTOR(   R   R   t
   proto_cls1t
   proto_cls2(    (    sO   /usr/lib/python2.7/site-packages/google/protobuf/internal/proto_builder_test.pyt   testMakeSameProtoClassTwiceP   s    				(   t   __name__t
   __module__R   R   R   R   (    (    (    sO   /usr/lib/python2.7/site-packages/google/protobuf/internal/proto_builder_test.pyR   1   s   			t   __main__(   t   __doc__t   collectionsR    t   ImportErrort   ordereddictt	   unittest2t   unittestt   google.protobufR   R   R   R   t   TestCaseR   R    t   main(    (    (    sO   /usr/lib/python2.7/site-packages/google/protobuf/internal/proto_builder_test.pyt   <module>    s   -