File: //lib/python3.6/site-packages/google/protobuf/internal/__pycache__/descriptor_test.cpython-36.pyc
3
���h1� � @ s$ d Z dZddlZyddlZW n ek
r8 ddlZY nX ddlmZ ddlmZ ddlm Z ddlm
Z
ddlmZ dd lm
Z
dd
lmZ ddlmZ ddlmZ dd
lmZ dZG dd� dej�ZG dd� de�ZG dd� dej�ZG dd� dej�ZG dd� dej�Zedk�r ej� dS )z1Unittest for google.protobuf.internal.descriptor.z#robinson@google.com (Will Robinson)� N)�unittest_custom_options_pb2)�unittest_import_pb2)�unittest_pb2)�descriptor_pb2)�api_implementation)� test_util)�
descriptor)�descriptor_pool)�symbol_database)�text_formatz
name: 'TestEmptyMessage'
c @ s� e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Zdd� Zd
d� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zejej� dkp�ej� dkd�d d!� �Zd"S )#�DescriptorTestc C s t jddd�}|jjdd�}|jjddt jjt jjd� |jjd d�}|j jd
dd� |j jd
dd� |j jddd� |jjdd� |j
jdd�}|jjdddd�}| j� | _
| j
j|� | j
j|j�| _| jj|j | _| jj|j | _| jj|j | _| jj|j | _d S )Nzsome/filename/some.proto�protobuf_unittest)�name�package�
NestedMessage)r Zbb� )r �number�type�label�ForeignEnum�FOREIGN_FOO� )r r ZFOREIGN_BAR� ZFOREIGN_BAZ� ZResponseMessageZServiceZ
CallMethodz .protobuf_unittest.NestedMessagez".protobuf_unittest.ResponseMessage)r Z
input_typeZoutput_type)r �FileDescriptorProto�message_type�add�fieldZFieldDescriptorProtoZ
TYPE_INT32ZLABEL_OPTIONAL� enum_type�valueZservice�method�GetDescriptorPool�poolZAddZFindFileByNamer �my_file�message_types_by_name�
my_message�enum_types_by_name�my_enum�services_by_name�
my_service�methods_by_name� my_method)�self�
file_protoZ
message_protoZ
enum_protoZ
service_protoZmethod_proto� r. �%/usr/lib/python3.6/descriptor_test.py�setUp>