<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</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   -