<!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>
3
†Üäh  ã               @   sˆ   d Z dZyddlZW n ek
r0   ddlZY nX ddlmZ ddlmZ ddlm	Z	 ddlm
Z
 G dd	„ d	ejƒZed
kr„ejƒ  dS )z.Tests for google.protobuf.descriptor_database.z"matthewtoia@google.com (Matt Toia)é    N)Úunittest_pb2)Údescriptor_pb2)Úfactory_test2_pb2)Údescriptor_databasec               @   s   e Zd Zdd„ ZdS )ÚDescriptorDatabaseTestc             C   s(  t jƒ }tjjtjjƒ}|j|ƒ | j	||j
dƒƒ | j	||jdƒƒ | j	||jdƒƒ | j	||jdƒƒ | j	||jdƒƒ | j	||jdƒƒ | j	||jdƒƒ | j	||jdƒƒ | j	||jd	ƒƒ | j	||jd
ƒƒ tjjtjjƒ}|j|ƒ | j	||jdƒƒ | j	||jdƒƒ | jt|jdƒ d S )Nz,google/protobuf/internal/factory_test2.protoz/google.protobuf.python.internal.Factory2MessagezEgoogle.protobuf.python.internal.Factory2Message.NestedFactory2Messagez,google.protobuf.python.internal.Factory2EnumzBgoogle.protobuf.python.internal.Factory2Message.NestedFactory2EnumzDgoogle.protobuf.python.internal.MessageWithNestedEnumOnly.NestedEnumz:google.protobuf.python.internal.Factory2Message.list_fieldz>google.protobuf.python.internal.Factory2Enum.FACTORY_2_VALUE_0z-google.protobuf.python.internal.another_fieldz>google.protobuf.python.internal.Factory2Message.one_more_fieldzprotobuf_unittest.TestServicez)protobuf_unittest.TestAllTypes.none_fieldzprotobuf_unittest.NoneMessage)r   ZDescriptorDatabaser   ZFileDescriptorProtoZ
FromStringr   Z
DESCRIPTORZserialized_pbZAddZassertEqualZFindFileByNameZFindFileContainingSymbolr   ZassertRaisesÚKeyError)ÚselfZdbZfile_desc_protoZfile_desc_proto2© r	   ú./usr/lib/python3.6/descriptor_database_test.pyÚtestAdd1   sD    















zDescriptorDatabaseTest.testAddN)Ú__name__Ú
__module__Ú__qualname__r   r	   r	   r	   r
   r   /   s   r   Ú__main__)Ú__doc__Ú
__author__Z	unittest2ZunittestÚImportErrorZgoogle.protobufr   r   Zgoogle.protobuf.internalr   r   ZTestCaser   r   Úmainr	   r	   r	   r
   Ú<module>    s   6