Hacked By AnonymousFox

Current Path : /usr/lib/python2.7/site-packages/google/protobuf/internal/
Upload File :
Current File : //usr/lib/python2.7/site-packages/google/protobuf/internal/symbol_database_test.pyc

�
Du�ac@s�dZyddlZWnek
r5ddlZnXddlmZddlmZddlmZddlmZdej	fd��YZ
ed	kr�ej�ndS(
s*Tests for google.protobuf.symbol_database.i����N(tunittest_pb2(t
descriptor(tdescriptor_pool(tsymbol_databasetSymbolDatabaseTestcBsYeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	cCs�tjr$tjdtj��}ntj�}|jtj�|j	tj
�|j	tj
j�|j	tj
j�|j	tj
j
�|jtjj�|jtj
jj�|jtj�|S(Ntpool(Rt_USE_C_DESCRIPTORSRtSymbolDatabaseRtDefaulttRegisterFileDescriptorRt
DESCRIPTORtRegisterMessagetTestAllTypest
NestedMessaget
OptionalGroupt
RepeatedGrouptRegisterEnumDescriptortForeignEnumt
NestedEnumtRegisterServiceDescriptort_TESTSERVICE(tselftdb((sQ/usr/lib/python2.7/site-packages/google/protobuf/internal/symbol_database_test.pyt	_Database/s	cCs5|j�jtjj�}|j|tjk�dS(N(RtGetPrototypeRRR
t
assertTrue(Rtinstance((sQ/usr/lib/python2.7/site-packages/google/protobuf/internal/symbol_database_test.pyttestGetPrototypeAscCs6|j�jdg�}|jtj|dk�dS(Nsgoogle/protobuf/unittest.protosprotobuf_unittest.TestAllTypes(RtGetMessagesRRR(Rtmessages((sQ/usr/lib/python2.7/site-packages/google/protobuf/internal/symbol_database_test.pyttestGetMessagesFs
cCs�|jtj|j�jd��|jtjj|j�jd��|jtjj|j�jd��|jtjj|j�jd��dS(Nsprotobuf_unittest.TestAllTypess,protobuf_unittest.TestAllTypes.NestedMessages,protobuf_unittest.TestAllTypes.OptionalGroups,protobuf_unittest.TestAllTypes.RepeatedGroup(tassertEqualRRRt	GetSymbolR
RR(R((sQ/usr/lib/python2.7/site-packages/google/protobuf/internal/symbol_database_test.pyt
testGetSymbolMs


cCsN|jd|j�jjd�j�|jd|j�jjd�j�dS(Nsprotobuf_unittest.ForeignEnums)protobuf_unittest.TestAllTypes.NestedEnum(RRRtFindEnumTypeByNamet	full_name(R((sQ/usr/lib/python2.7/site-packages/google/protobuf/internal/symbol_database_test.pyt	testEnums[s
cCsN|jd|j�jjd�j�|jd|j�jjd�j�dS(Nsprotobuf_unittest.TestAllTypess,protobuf_unittest.TestAllTypes.NestedMessage(RRRtFindMessageTypeByNameR#(R((sQ/usr/lib/python2.7/site-packages/google/protobuf/internal/symbol_database_test.pyttestFindMessageTypeByNamefs
cCs)|jd|j�jjd�j�dS(Nsprotobuf_unittest.TestService(RRRtFindServiceByNameR#(R((sQ/usr/lib/python2.7/site-packages/google/protobuf/internal/symbol_database_test.pyttestFindServiceByNamepscCsN|jd|j�jjd�j�|jd|j�jjd�j�dS(Nsgoogle/protobuf/unittest.protos)protobuf_unittest.TestAllTypes.NestedEnumsprotobuf_unittest.TestAllTypes(RRRtFindFileContainingSymboltname(R((sQ/usr/lib/python2.7/site-packages/google/protobuf/internal/symbol_database_test.pyttestFindFileContainingSymbolvs
cCs)|jd|j�jjd�j�dS(Nsgoogle/protobuf/unittest.proto(RRRtFindFileByNameR*(R((sQ/usr/lib/python2.7/site-packages/google/protobuf/internal/symbol_database_test.pyttestFindFileByName�s(t__name__t
__module__RRRR!R$R&R(R+R-(((sQ/usr/lib/python2.7/site-packages/google/protobuf/internal/symbol_database_test.pyR-s						
		t__main__(
t__doc__t	unittest2tunittesttImportErrortgoogle.protobufRRRRtTestCaseRR.tmain(((sQ/usr/lib/python2.7/site-packages/google/protobuf/internal/symbol_database_test.pyt<module> s
[

Hacked By AnonymousFox1.0, Coded By AnonymousFox