AlkantarClanX12
Current Path : /proc/thread-self/root/usr/lib/python2.7/site-packages/google/protobuf/internal/ |
Current File : //proc/thread-self/root/usr/lib/python2.7/site-packages/google/protobuf/internal/generator_test.pyc |
� Du�ac @ s1 d Z d Z y d d l Z Wn e k r; 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 d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d Z d e j f d � � YZ d e j f d � � YZ e d k r-e j � n d S( s� Unittest that directly tests the output of the pure-Python protocol compiler. See //google/protobuf/internal/reflection_test.py for a test which further ensures that we can use Python protocol message objects as we expect. s# robinson@google.com (Will Robinson)i����N( t test_bad_identifiers_pb2( t unittest_custom_options_pb2( t unittest_import_pb2( t unittest_import_public_pb2( t unittest_mset_pb2( t unittest_mset_wire_format_pb2( t unittest_no_generic_services_pb2( t unittest_pb2( t service( t symbol_databasei t GeneratorTestc B s� e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s6 d } t j } | j | j j | j j | j � d S( Nt optional_nested_message( R t TestAllTypest assertEqualt NestedMessaget DESCRIPTORt fields_by_namet message_type( t selft field_namet proto_type( ( sK /usr/lib/python2.7/site-packages/google/protobuf/internal/generator_test.pyt testNestedMessageDescriptor@ s c C s� | j d t j � | j d t j � | j d t j � t j � } | j d | j � | j d t j j � | j d | j � | j d t j j � | j d | j � | j d t j j � d S( Ni i i i i i ( R R t FOREIGN_FOOt FOREIGN_BARt FOREIGN_BAZR t FOOt BARt BAZ( R t proto( ( sK /usr/lib/python2.7/site-packages/google/protobuf/internal/generator_test.pyt testEnumsG s c s t j � } d � � � f d � } | j | | j � � | j | j d k � | j | | j � � | j | j d k � | j � | j � � | j | | j � � | j | j d k � | j | | j � � | j | j d k � | j � | j � � | j d | j � d S( Nc S s | | k S( N( ( t val( ( sK /usr/lib/python2.7/site-packages/google/protobuf/internal/generator_test.pyt isnan\ s c s � | � o � | d � S( Ni ( ( R ( R ( sK /usr/lib/python2.7/site-packages/google/protobuf/internal/generator_test.pyt isinf_ s i s ? ? ?? ?? ??? ??/ ??-( R t TestExtremeDefaultValuest assertTruet inf_doublet neg_inf_doublet nan_doublet inf_floatt neg_inf_floatt nan_floatR t cpp_trigraph( R t messageR ( ( R sK /usr/lib/python2.7/site-packages/google/protobuf/internal/generator_test.pyt testExtremeDefaultValuesW s c C s t j j } i t d 6t d 6t d 6t d 6} t g | j D]'