AlkantarClanX12

Your IP : 3.137.181.69


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

�
Du�ac@s�dZdZyddlZWnek
r;ddlZnXddlmZddlmZddlmZdej	fd��YZ
ed	kr�ej�ndS(
s6Tests for google.protobuf.internal.service_reflection.spetar@google.com (Petar Petrov)i����N(tunittest_pb2(tservice_reflection(tservicetFooUnitTestcBseZd�Zd�ZRS(c
s3dtjfd��Y}dtjfd��Y}d�_dtjfd��Y}d�_�fd�}|�}|�}|�}|j|tj�|��j	d|j
��j	d�j�d|_
tjj�}|j|j
d	|tj�|��j|j|j
d	�tjk��j|j|j
d	�tjk��j	d
|j
��j	d�j�dtjfd��Y}	|	�}d|_
|j|tj�|��j	d|j
��j	t|j�d|_
|j|j
d	|tj�|��j	d|j
��j	t|j�dS(
NtMockRpcChannelcBseZd�ZRS(cSs)||_||_||_||�dS(N(tmethodt
controllertrequest(tselfRRRtresponsetcallback((sT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pyt
CallMethod3s			(t__name__t
__module__R(((sT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pyR2stMockRpcControllercBseZd�ZRS(cSs
||_dS(N(tfailure_message(Rtmsg((sT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pyt	SetFailed:s(RR
R(((sT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pyR9st	MyServicecBseZRS((RR
(((sT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pyR?scs
|�_dS(N(tcallback_response(R	(R(sT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pyt
MyCallbackDssMethod Foo not implemented.isMethod Bar not implemented.t
MyServiceImplcBseZd�Zd�ZRS(cSs
t|_dS(N(tTruet
foo_called(Rtrpc_controllerRtdone((sT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pytFoo]scSs
t|_dS(N(Rt
bar_called(RRRR((sT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pytBar_s(RR
RR(((sT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pyR\s	(Rt
RpcChannelt
RpcControllertNoneRRtTestServiceRt
FooRequesttassertEqualRt
GetDescriptorRtmethodst
BarRequestt
assertTruetGetRequestClasstGetResponseClasstBarResponseRRR(
RRRRRRtchanneltsrvctservice_descriptorR((RsT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pyttestService1sF						
	

	
			cs�dtjfd��Y}d�_�fd�}|�}tj|�}d}d}�jtjj�|j��|j|||��j	�jtj
��j||j��j||j��j|j�j
d|j�dS(NRcBseZd�ZRS(cSs,||_||_||_||��dS(N(RRR(RRRRtresponse_classR
((sT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pyRps			(RR
R(((sT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pyRoscs
|�_dS(N(R(R	(R(sT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pyRysRRi(RRRRRtTestService_StubR"R#RtassertIsInstancetFooResponseRRR$R(RRRR*tstubRR((RsT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pyttestServiceStubns		
(RR
R-R3(((sT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pyR/s	=t__main__(
t__doc__t
__author__t	unittest2tunittesttImportErrortgoogle.protobufRRRtTestCaseRRtmain(((sT/usr/lib/python2.7/site-packages/google/protobuf/internal/service_reflection_test.pyt<module> s
_