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/text_format_test.pyo

�
Du�ac@s)dZdZddlZddlZddlZddlZyddlZWnek
rkddlZnXddl	m
Z
ddlmZddlm
Z
ddlmZddlmZdd	lmZdd
l	mZddl	mZddl	mZddl	mZdd
lmZddlmZdejfd��YZdejfd��YZe
jee�defd��Y�Zdefd��YZdefd��YZdejfd��YZdejfd��YZe
jee�defd��Y�Z e!dkr%ej"�ndS( s%Test for google.protobuf.text_format.s kenton@google.com (Kenton Varda)i����N(t_parameterized(tany_test_pb2(tmap_unittest_pb2(tunittest_mset_pb2(tunittest_pb2(tunittest_proto3_arena_pb2(tapi_implementation(tmessage_set_extensions_pb2(t	test_util(tdescriptor_pool(ttext_formattSimpleTextFormatTestscBseZd�ZRS(cCs.x'tjD]}|jdt|��q
WdS(Ni(R
t_QUOTEStassertEqualtlen(tselftquote((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestQuoteMarksAreSingleCharsFs(t__name__t
__module__R(((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyR@stTextFormatBasecBs,eZd�Zd�Zd�Zd�ZRS(cCsRtj|��=}ttkr(|j�Sg|D]}|jd�^q/SWdQXdS(Nsutf-8(Rt
GoldenFiletstrtbytest	readlinestdecode(Rtgolden_filenametftgolden_line((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt
ReadGoldenNscCs,|j|�}|j|dj|��dS(Nt(RtassertMultiLineEqualtjoin(RttextRtgolden_lines((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pytCompareToGoldenFileSscCs|j||�dS(N(R
(RR!tgolden_text((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pytCompareToGoldenTextWscCs[|jdd�jdd�jdd�jdd�}tjdtj�jd|�}|S(Nse+0se+se-0se-s\.0$R(treplacetretcompilet	MULTILINEtsub(RR!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pytRemoveRedundantZerosZs!(RRRR#R%R+(((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyRLs			tTextFormatTestcBseZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs�|j�}|jjd�|jjd�|jjd�|jjd�|jjd�|jjd�|jjd�|j|jtj	|��d�dS(	Nl����l����gw��/�^@g�t�QFքDg��‚�6<s

	\'"uüꜟs�repeated_int64: -9223372036854775808
repeated_uint64: 18446744073709551615
repeated_double: 123.456
repeated_double: 1.23e+22
repeated_double: 1.23e-18
repeated_string: "\000\001\007\010\014\n\r\t\013\\\'\""
repeated_string: "\303\274\352\234\237"
(
tTestAllTypestrepeated_int64tappendtrepeated_uint64trepeated_doubletrepeated_stringR%R+R
tMessageToString(Rtmessage_moduletmessage((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintExotichscCsXdtjfd��Y}|j�}|jj|d��|jtj|�d�dS(Nt
UnicodeSubcBseZRS((RR(((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyR7~suüꜟs(repeated_string: "\303\274\352\234\237"
(tsixt	text_typeR-R2R/R%R
R3(RR4R7R5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintExoticUnicodeSubclass|scCsG|j�}|jj�}d|_|jtj|dt�d�dS(Ni*tas_one_lines"repeated_nested_message { bb: 42 }(R-trepeated_nested_messagetaddtbbR%R
R3tTrue(RR4R5tmsg((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintNestedMessageAsOneLine�s	cCs|j�}|jjd�|jjd�|jjd�|jjd�|jjd�|jtj|dt�d�dS(NiitGoogletZurichR;sirepeated_int32: 1 repeated_int32: 1 repeated_int32: 3 repeated_string: "Google" repeated_string: "Zurich"(R-trepeated_int32R/R2R%R
R3R?(RR4R5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt testPrintRepeatedFieldsAsOneLine�scCs8|j�}d|_|jtj|dt�d�dS(Ns
a
new
lineR;soptional_string: "a\nnew\nline"(R-toptional_stringR%R
R3R?(RR4R5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt'testPrintNestedNewLineInStringAsOneLine�s
	cCs�|j�}|jjd�|jjd�|jjd�|jjd�|jjd�|jjd�|jjd�|j|jtj	|dt
��d	�dS(
Nl����l����gw��/�^@g�t�QFքDg��‚�6<s

	\'"uüꜟR;s�repeated_int64: -9223372036854775808 repeated_uint64: 18446744073709551615 repeated_double: 123.456 repeated_double: 1.23e+22 repeated_double: 1.23e-18 repeated_string: "\000\001\007\010\014\n\r\t\013\\\'\"" repeated_string: "\303\274\352\234\237"(R-R.R/R0R1R2R%R+R
R3R?(RR4R5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintExoticAsOneLine�scCs?|j�}|jjd�|jjd�|jjd�|jjd�|jjd�|jjd�|jjd�tj|dtd	t	�}|j�}tj
||�}|j||�|j||�tj|dtd	t�}|j�}tj
||�}|j||�|j||d
||f�dS(Nl����l����gw��/�^@g�t�QFքDg��‚�6<s

	\'"uüꜟR;tas_utf8s	
%s != %s(
R-R.R/R0R1R2R
R3R?tFalsetParsetassertIsR
(RR4R5t	wire_texttparsed_messagetr((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestRoundTripExoticAsOneLine�s.		cCs~|j�}|jjd�tj|dt�}|j|d�|j�}tj||�|j||d||f�dS(NuüꜟRIsrepeated_string: "üꜟ"
s	
%s != %s(	R-R2R/R
R3R?R%RKR
(RR4R5R!RN((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintRawUtf8String�scCs�|j�}d|j_d|j_|jjjd�|jjjd�ddddg}tj|d	d
�}|j	|j
|�dj|��tj|dtd	d
�}|j	|j
|�d
j|��dS(Ng�?g�/_�e�̾i��g⹭�?soptional_float: 1.25s%optional_double: -3.45678901234568e-6srepeated_float: -5642srepeated_double: 7.89e-5tfloat_formats.15gs&payload {{
  {0}
  {1}
  {2}
  {3}
}}
R;spayload {{ {0} {1} {2} {3} }}(
tNestedTestAllTypestpayloadtoptional_floattoptional_doubletrepeated_floatR/R1R
R3R%R+tformatR?(RR4R5tformatted_fieldsttext_message((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintFloatFormat�s&
	cCs/|j�}d|_|jdt|��dS(Ni{sc: 123
(tForeignMessagetcR
R(RR4R5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestMessageToString�s	cCs�|j�}|jjd}|j}tjt�}tj|||�|jd|j	��|j
�tjt�}tj|�}|j||�|jd|j	��|j
�dS(NRUsoptional_float: 0.0
(R-t
DESCRIPTORtfields_by_nameRUR
t
TextWriterRJt
PrintFieldR
tgetvaluetcloset_Printer(RR4R5tfieldtvaluetouttprinter((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintFields	
cCs�|j�}|jjd}|j}tjt�}tj|||�|jd|j	��|j
�tjt�}tj|�}|j||�|jd|j	��|j
�dS(NRUs0.0(R-R_R`RUR
RaRJtPrintFieldValueR
RcRdRe(RR4R5RfRgRhRi((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintFieldValues	
cCsw|j�}tj|�tj|�}|j�}tj||�|j||�|tkrstj||�ndS(N(	R-RtSetAllFieldsR
R3RKR
RtExpectAllFieldsSet(RR4R5t
ascii_textRN((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseAllFields"s
cCs=|j�}tj|�tj|�}|jd�}|j�}tj||�|j||�|tkr�tj	||�n|j
�tj||�|j||�|tkr�tj	||�ntj
r9|j�}d}tj||�|j|jd�|j
�tj||�|j|jd�ndS(Nsutf-8uoptional_string: "café"ucafé(R-RRmR
R3tencodeRKR
RRntCleartMergeR8tPY2RF(RR4R5RoRNtmsg2R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseAndMergeUtf8-s,

	
cCs�|j�}d}tj||�|jd|jd�|jd|jd�|jd|jd�|jd|jd�|jd|jd	�|jd
|jd�|jd|jd�|jd|jd	�|jd
|jd�dS(NsSrepeated_int64: -9223372036854775808
repeated_uint64: 18446744073709551615
repeated_double: 123.456
repeated_double: 1.23e+22
repeated_double: 1.23e-18
repeated_string: 
"\000\001\007\010\014\n\r\t\013\\\'\""
repeated_string: "foo" 'corge' "grault"
repeated_string: "\303\274\352\234\237"
repeated_string: "\xc3\xbc"
repeated_string: "ü"
l����il����gw��/�^@g�t�QFքDig��‚�6<is

	\'"tfoocorgegraultuüꜟuüi(R-R
RKR
R.R0R1R2(RR4R5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseExoticHscCs�|j�}d}tj||�|jd|jd�|jd|jd�|jd|jd�|jd|jd�|jd	|jd�dS(
Nsorepeated_int64: 100;
repeated_int64: 200;
repeated_int64: 300,
repeated_string: "one",
repeated_string: "two";
idii�ii,iuoneutwo(R-R
RKR
R.R2(RR4R5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseTrailingCommasascCs�|j�}d}tj||�|jd|jd�|jd|jd�|jd|jd�|jd|jd�|jd	|jd�dS(
NsRrepeated_int64: [100, 200];
repeated_int64: 300,
repeated_string: ["one", "two"];
idii�ii,iuoneutwo(R-R
RKR
R.R2(RR4R5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt"testParseRepeatedScalarShortFormatpscCs�|j�}d}tj||�|jd|jdj�|jd|jdj�|jd|jdj�|jd|jd	j�dS(
Nsyrepeated_nested_message: [{bb: 100}, {bb: 200}],
repeated_nested_message: {bb: 300}
repeated_nested_message [{bb: 400}];
idii�ii,ii�i(R-R
RKR
R<R>(RR4R5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt#testParseRepeatedMessageShortFormat}scCs<|j�}d}tj||�|j|j�|�dS(NR(R-R
RKR
(RR4R5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseEmptyText�scCss|j�}d}|jtj��}tj||�WdQX|j|jj�d�|j|jj�d�dS(Nsrepeated_string: "\xc3\xc3"ii(	R-tassertRaisesR
t
ParseErrorRKR
t	exceptiontGetLinet	GetColumn(RR4R5R!te((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseInvalidUtf8�scCs8|j�}d}tj|tjdtj||�dS(Ntfoos?1:1 : Message type "\w+.TestAllTypes" has no field named "foo".(R-R8tassertRaisesRegexR
R~RK(RR4R5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseSingleWord�s
cCs8|j�}d}tj|tjdtj||�dS(Nsunknown_field: 8
sI1:1 : Message type "\w+.TestAllTypes" has no field named "unknown_field".(R-R8R�R
R~RK(RR4R5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseUnknownField�s
cCs8|j�}d}tj|tjdtj||�dS(Nsoptional_nested_enum: BARRsG1:23 : Enum type "\w+.TestAllTypes.NestedEnum" has no value named BARR.(R-R8R�R
R~RK(RR4R5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseBadEnumValue�scCs8|j�}d}tj|tjdtj||�dS(Nsoptional_int32: borks#1:17 : Couldn't parse integer: bork(R-R8R�R
R~RK(RR4R5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseBadIntValue�s
cCs�|j�}d}tj||�d}|jd|jd�|j|d|d|jd�|j|d|d	|jd
�|j||d||d|jd�|j||d||d	|jd�|j|d
|jd�dS(Nsrepeated_string: "\xf\x62"
               repeated_string: "\\xf\\x62"
               repeated_string: "\\\xf\\\x62"
               repeated_string: "\\\\xf\\\\x62"
               repeated_string: "\\\\\xf\\\\\x62"
               repeated_string: "\x5cx20"s\sbitxftx62istbiiitx20i(R-R
RKR
R2(RR4R5R!tSLASH((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseStringFieldUnescape�s##cCsK|j�}d}tj||�}|j||�|jd|j�dS(Ns%optional_int32: 42 optional_int32: 67iC(R-R
RsRLR
toptional_int32(RR4R5R!RO((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestMergeDuplicateScalars�s
cCsQ|j�}d}tj||�}|j||k�|jd|jj�dS(NsCoptional_nested_message { bb: 1 } optional_nested_message { bb: 2 }i(R-R
Rst
assertTrueR
toptional_nested_messageR>(RR4R5R!RO((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt&testMergeDuplicateNestedMessageScalars�s
cCsW|j�}d|_|j�}tjtj|�|�|jd|jd��dS(Nitoneof_uint32toneof_field(R-R�R
RKR3R
t
WhichOneof(RR4tmtm2((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseOneof�s
	cCsNdjddg�}|j�}tj||�|jd|jd��dS(Ns
soneof_uint32: 11soneof_string: "foo"toneof_stringR�(R R-R
RsR
R�(RR4tm_stringR�((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestMergeMultipleOneof�scCsQdjddg�}|j�}|jtjd��tj||�WdQXdS(Ns
soneof_uint32: 11soneof_string: "foo"s is specified along with field (R R-tassertRaisesRegexpR
R~RK(RR4R�R�((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseMultipleOneof�s

( RRR6R:RARERGRHRPRQR[R^RjRlRpRvRxRyRzR{R|R�R�R�R�R�R�R�R�R�R�R�(((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyR,es<								
	!								
												t OnlyWorksWithProto2RightNowTestscBsPeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(cCsEtj�}tj|�|j|jtj|dt��d�dS(Ntpointy_bracketss*text_format_unittest_data_pointy_oneof.txt(	RR-RRmR#R+R
R3R?(RR5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintAllFieldsPointy�s
cCssdj|jd��}tj�}tj||�}|j||�tj�}tj|�|j	||�dS(Ns
s/text_format_unittest_data_oneof_implemented.txt(
R RRR-R
RKRLRRmR
(RR$RNROR5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseGolden�s
cCs?tj�}tj|�|j|jtj|��d�dS(Ns/text_format_unittest_data_oneof_implemented.txt(RR-RRmR#R+R
R3(RR5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintAllFieldss

cCs�tj�}d|_d|_d|_d|j_d|j_|j|j	t
j|dt��d�|j|j	t
j|��d�dS(	Nt115ieioiituse_index_ordersWmy_string: "115"
my_int: 101
my_float: 111
optional_nested_message {
  oo: 0
  bb: 1
}
sWmy_int: 101
my_string: "115"
my_float: 111
optional_nested_message {
  bb: 1
  oo: 0
}
(
RtTestFieldOrderingst	my_stringtmy_inttmy_floatR�tooR>R%R+R
R3R?(RR5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintInIndexOrders			cCsj|jd�}tj�}tj||�}|j||�tj�}tj|�|j||�dS(Ns/text_format_unittest_data_oneof_implemented.txt(	RRR-R
t
MergeLinesRLRRmR
(RtopenedRNROR5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestMergeLinesGoldens
cCsj|jd�}tj�}tj||�}|j||�tj�}tj|�|j||�dS(Ns/text_format_unittest_data_oneof_implemented.txt(	RRR-R
t
ParseLinesRLRRmR
(RR�RNROR5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseLinesGolden's
cCsztj�}d|jd<d|jd<d|jd<d|jd<d|jd	<d
|jd_|j	t
j|�d�dS(Ni8���i����ii"i!i�i{t123tabciiosHmap_int32_int32 {
  key: -123
  value: -456
}
map_int64_int64 {
  key: -8589934592
  value: -17179869184
}
map_uint32_uint32 {
  key: 123
  value: 456
}
map_uint64_uint64 {
  key: 8589934592
  value: 17179869184
}
map_string_string {
  key: "abc"
  value: "123"
}
map_int32_foreign_message {
  key: 111
  value {
    c: 5
  }
}
ll����ll����ll(RtTestMaptmap_int32_int32tmap_int64_int64tmap_uint32_uint32tmap_uint64_uint64tmap_string_stringtmap_int32_foreign_messageR]R%R
R3(RR5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintMap1s




cCs�tj�}x%tjdd!D]}d|j|<qWx+ttjdd!�D]}d|j|<qKWdjd�tjD��}|jtj	|�|�dS(Ni
itdummyiRcss|]}d|fVqdS(s3map_string_string {
  key: "%c"
  value: "dummy"
}
N((t.0tletter((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pys	<genexpr>_s(
RR�tstringtascii_uppercaseR�treversedR R%R
R3(RR5R�tgolden((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestMapOrderEnforcementYs(
RRR�R�R�R�R�R�R�R�(((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyR��s					
	
	(tProto2TestscBs�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs�tj�}tjj}tjj}d|jj|_d|jj|_|j	t
j|�d�tj
�}tj}d|j|_|j	t
j|�d�dS(NiR�s�message_set {
  [protobuf_unittest.TestMessageSetExtension1] {
    i: 23
  }
  [protobuf_unittest.TestMessageSetExtension2] {
    str: "foo"
  }
}
tbarsF[google.protobuf.internal.TestMessageSetExtension3] {
  text: "bar"
}
(RtTestMessageSetContainertTestMessageSetExtension1tmessage_set_extensiontTestMessageSetExtension2tmessage_sett
ExtensionstiRR%R
R3RtTestMessageSettmessage_set_extension3R!(RR5text1text2text((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintMessageSetvs		cCs�tjt�}tj�}tjj}tjj}d|jj	|_
d|jj	|_tj||dt
�|j|j�d�|j�dS(NiR�tuse_field_numbers?1 {
  1545008 {
    15: 23
  }
  1547769 {
    25: "foo"
  }
}
(R
RaRJRR�R�R�R�R�R�R�RtPrintMessageR?R%RcRd(RRhR5R�R�((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt testPrintMessageSetByFieldNumber�scCsmtj�}tjj}tjj}d|jj|_d|jj|_|j	t
j|dt�d�dS(NiR�R;s�message_set { [protobuf_unittest.TestMessageSetExtension1] { i: 23 } [protobuf_unittest.TestMessageSetExtension2] { str: "foo" } }(
RR�R�R�R�R�R�R�RR%R
R3R?(RR5R�R�((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintMessageSetAsOneLine�scCs�tj�}d}tj||�|jd|jd�|jd|jd�tj�}d}tj||�tjj	}tj
j	}|jd|jj|j
�|jd|jj|j�dS(Ns&repeated_uint64: 1
repeated_uint64: 2
iiis�message_set {
  [protobuf_unittest.TestMessageSetExtension1] {
    i: 23
  }
  [protobuf_unittest.TestMessageSetExtension2] {
    str: "foo"
  }
}
iR�(RR-R
RKR
R0RR�R�R�R�R�R�R�R(RR5R!R�R�((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseMessageSet�scCsWtj�}d}tj||dtj��|jtj|dtj��|�dS(Ns�value {
  [type.googleapis.com/google.protobuf.internal.TestAny] {
    [google.protobuf.internal.TestAnyExtension1.extension1] {
      i: 10
    }
  }
}
R	(ttest_extend_anytTestAnyR
RsR	tDefaultR%R3(RR5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestExtensionInsideAnyMessage�sc	Cs6tj�}d}tj||dt�|jd|jd�|jd|jd�tj�}d}tj||dt�tj	j
}tjj
}|jd|jj
|j�|jd|jj
|j�tj�}d	}tj|tjd
tj||�d}tj|tjdtj||dt�dS(
Ns34: 1
repeated_uint64: 2
tallow_field_numberiiis?1 {
  1545008 {
    15: 23
  }
  1547769 {
    25: "foo"
  }
}
iR�s34:1
s>1:1 : Message type "\w+.TestAllTypes" has no field named "34".s1234:1
s@1:1 : Message type "\w+.TestAllTypes" has no field named "1234".(RR-R
RKR?R
R0RR�R�R�R�R�R�R�RR8R�R~(RR5R!R�R�((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseMessageByFieldNumber�s4cCs?tj�}tj|�|j|jtj|��d�dS(Ns(text_format_unittest_extensions_data.txt(RtTestAllExtensionsRtSetAllExtensionsR#R+R
R3(RR5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintAllExtensionss

cCsEtj�}tj|�|j|jtj|dt��d�dS(NR�s/text_format_unittest_extensions_data_pointy.txt(	RR�RR�R#R+R
R3R?(RR5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintAllExtensionsPointys
cCsadj|jd��}tj�}tj||�tj�}tj|�|j||�dS(Ns
s(text_format_unittest_extensions_data.txt(	R RRR�R
RKRR�R
(RR$RNR5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseGoldenExtensionss
cCsXtj�}tj|�tj|�}tj�}tj||�|j||�dS(N(RR�RR�R
R3RKR
(RR5RoRN((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseAllExtensionss
c	Cs�tj�}d}tj||dt�d}|jtj|�|�tj�}d}tj|tj	dtj||dt�tj�}d}tj|tj	dtj||dt�tj�}d}tj|tj	dtj||dt�tj�}d	}tj|tj	d
tj||dt�tj�}d}tj|tj	dtj||dt�tj�}d
}tj||dt�tj
j}tjj}|j
d|jj|j�|j
d|jj|j�dS(Ns�message_set {
  [unknown_extension] {
    i: 23
    bin: "�"    [nested_unknown_ext]: {
      i: 23
      x: x
      test: "test_string"
      floaty_float: -0.315
      num: -inf
      multiline_str: "abc"
          "def"
          "xyz."
      [nested_unknown_ext.ext]: <
        i: 23
        i: 24
        pointfloat: .3
        test: "test_string"
        floaty_float: -0.315
        num: -inf
        long_string: "test" "test2" 
      >
    }
  }
  [unknown_extension]: 5
}
tallow_unknown_extensionsmessage_set {
}
s3message_set {
  [unknown_extension] {
    i:
  }
}
sInvalid field value: }sGmessage_set {
  [unknown_extension] {
    str: "malformed string
  }
}
sInvalid field value: "sSmessage_set {
  [unknown_extension] {
    str: "malformed
 multiline
 string
  }
}
s7message_set {
  [malformed_extension] <
    i: -5
  
}
s5:1 : Expected ">".s)message_set {
  unknown_field: true
  
}
sb2:3 : Message type "proto2_wireformat_unittest.TestMessageSet" has no field named "unknown_field".s�message_set {
  [protobuf_unittest.TestMessageSetExtension1] {
    i: 23
  }
  [protobuf_unittest.TestMessageSetExtension2] {
    str: "foo"
  }
}
iR�(RR�R
RKR?R%R3R8R�R~R�R�R�R
R�R�R�R(RR5R!R�t	malformedR�R�((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt testParseAllowedUnknownExtension"sr					cCsZtj�}d}|jtj��}tj||�WdQX|jt|j�d�dS(Ns#optional_nested_message { "bb": 1 }s/1:27 : Expected identifier or number, got "bb".(	RR-R}R
R~RKR
RR(RR5R!R�((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseBadIdentifier�scCsftj�}d}tj|tjdtj||�tj�}tj|tjdtj||�dS(Ns[unknown_extension]: 8
s31:2 : Extension "unknown_extension" not registered.sM1:2 : Message type "protobuf_unittest.TestAllTypes" does not have extensions.(RR�R8R�R
R~RKR-(RR5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseBadExtension�scCs8tj�}d}tj|tjdtj||�dS(Nsoptional_nested_enum: 100sL1:23 : Enum type "\w+.TestAllTypes.NestedEnum" has no value with number 100.(RR-R8R�R
R~RK(RR5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseNumericUnknownEnum�scCs@tj�}d}tj||�|jd|jtj�dS(Nsa[protobuf_unittest.optional_int32_extension]: 42 [protobuf_unittest.optional_int32_extension]: 67iC(RR�R
RsR
R�toptional_int32_extension(RR5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt"testMergeDuplicateExtensionScalars�s
	cCs8tj�}d}tj|tjdtj||�dS(Nsa[protobuf_unittest.optional_int32_extension]: 42 [protobuf_unittest.optional_int32_extension]: 67s�1:96 : Message type "protobuf_unittest.TestAllExtensions" should not have multiple "protobuf_unittest.optional_int32_extension" extensions.(RR�R8R�R
R~RK(RR5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt"testParseDuplicateExtensionScalars�s
cCs8tj�}d}tj|tjdtj||�dS(NsCoptional_nested_message { bb: 1 } optional_nested_message { bb: 2 }sh1:65 : Message type "protobuf_unittest.TestAllTypes.NestedMessage" should not have multiple "bb" fields.(RR-R8R�R
R~RK(RR5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt&testParseDuplicateNestedMessageScalars�s	cCs8tj�}d}tj|tjdtj||�dS(Ns%optional_int32: 42 optional_int32: 67sf1:36 : Message type "protobuf_unittest.TestAllTypes" should not have multiple "optional_int32" fields.(RR-R8R�R
R~RK(RR5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseDuplicateScalars�s	cCs`tj�}d}tj|tjdtj||�d}tj|tjdtj||�dS(NsRepeatedGroup: <s1:16 : Expected ">".sRepeatedGroup: {s1:16 : Expected "}".(RR-R8R�R
R~RK(RR5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseGroupNotClosed�scCs~tj�}d}tj||�|j|jd��|j�tj�}d}tj||�|j|jd��dS(NsOptionalGroup: {}t
optionalgroupsOptionalGroup: <>(RR-R
RKR�tHasFieldRr(RR5R!((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseEmptyGroup�s
cCs�d}tj�}tj||�|jd|jd�|jd|jd�|jd|jd�|jd|jd�|jd	|j	d
�|jd|j
dj�dS(NsHmap_int32_int32 {
  key: -123
  value: -456
}
map_int64_int64 {
  key: -8589934592
  value: -17179869184
}
map_uint32_uint32 {
  key: 123
  value: 456
}
map_uint64_uint64 {
  key: 8589934592
  value: 17179869184
}
map_string_string {
  key: "abc"
  value: "123"
}
map_int32_foreign_message {
  key: 111
  value {
    c: 5
  }
}
i8���i����ii"i!i�i{R�R�iioll����ll����ll(RR�R
RKR
R�R�R�R�R�R�R](RR!R5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestParseMap�s(RRR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyR�ts*						)			
			z					
						tProto3TestscBs�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�ZRS(cCsZtj�}d|_tj�}|jj|�|jtj	|dt
j��d�dS(NR�R	s[any_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string"
  }
}
(Rt	OneStringtdataRR�t	any_valuetPackR
R
R3R	R�(Rtpacked_messageR5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrintMessageExpandAnys	cCsstj�}tj�}d|_|jj�j|�d|_|jj�j|�|jt	j
|�d�dS(Ntstring0tstring1s�repeated_any_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string0"
  }
}
repeated_any_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string1"
  }
}
(RR�RR�R�trepeated_any_valueR=R�R
R
R3(RR�R5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt!testPrintMessageExpandAnyRepeated(s		cCs`tj�}d|_tj�}|jj|�tj�}|j	t
j|d|�d�dS(NR�R	sdany_value {
  type_url: "type.googleapis.com/protobuf_unittest.OneString"
  value: "\n\006string"
}
(RR�R�RR�R�R�R	tDescriptorPoolR
R
R3(RR�R5t
empty_pool((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt2testPrintMessageExpandAnyDescriptorPoolMissingType<s	cCsTtj�}d|_tj�}|jj|�|jtj	|dt
�d�dS(NR�R�s[any_value <
  [type.googleapis.com/protobuf_unittest.OneString] <
    data: "string"
  >
>
(RR�R�RR�R�R�R
R
R3R?(RR�R5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt'testPrintMessageExpandAnyPointyBracketsIs	cCsTtj�}d|_tj�}|jj|�|jtj	|dt
�d�dS(NR�R;sRany_value { [type.googleapis.com/protobuf_unittest.OneString] { data: "string" } }(RR�R�RR�R�R�R
R
R3R?(RR�R5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt"testPrintMessageExpandAnyAsOneLineWs	c	Csftj�}d|_tj�}|jj|�|jtj	|dt
dt
dtj��d�dS(NR�R;R�R	sRany_value < [type.googleapis.com/protobuf_unittest.OneString] < data: "string" > >(
RR�R�RR�R�R�R
R
R3R?R	R�(RR�R5((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt0testPrintMessageExpandAnyAsOneLinePointyBracketsds	cCsWtj�}tj�}d|_tj|�}tj||�|jd|j�dS(Ni�(RR-toptional_nested_enumR
R3RKR
(RR5tmessage2ttext_string((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestUnknownEnumsss	cCs�tj�}d}tj||�tj�}|jj|�|jd|j	�|j
�tj||�tj�}|jj|�|jd|j	�dS(Ns[any_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string"
  }
}
R�(RR�R
RsRR�R�tUnpackR
R�RrRK(RR5R!R�((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestMergeExpandedAny{s
cCs�tj�}d}tj||�tj�}|jdj|�|jd|j	�|jdj|�|jd|j	�dS(Ns�repeated_any_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string0"
  }
}
repeated_any_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string1"
  }
}
iR�iR�(
RR�R
RsRR�R�R	R
R�(RR5R!R�((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestMergeExpandedAnyRepeated�s
cCsUtj�}d}tj||�tj�}|jj|�|jd|j	�dS(Ns[any_value {
  [type.googleapis.com/protobuf_unittest.OneString] <
    data: "string"
  >
}
R�(
RR�R
RsRR�R�R	R
R�(RR5R!R�((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt"testMergeExpandedAnyPointyBrackets�scCsHtj�}d}tj||�tj�}|jd|jj�dS(NsYany_value {
  [type.otherapi.com/protobuf_unittest.OneString] {
    data: "string"
  }
}
s-type.otherapi.com/protobuf_unittest.OneString(	RR�R
RsRR�R
R�ttype_url(RR5R!R�((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestMergeAlternativeUrl�s	c	Csltj�}d}|jtj��)}tj�}tj||d|�WdQX|jt	|j
�d�dS(Ns[any_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string"
  }
}
R	s=Type protobuf_unittest.OneString not found in descriptor pool(RR�R}R
R~R	R�RsR
RR(RR5R!R�R((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt-testMergeExpandedAnyDescriptorPoolMissingType�scCsUd}tj�}tj||�tj�}|jj|�|jd|j	�dS(Nsdany_value {
  type_url: "type.googleapis.com/protobuf_unittest.OneString"
  value: "\n\006string"
}
R�(
RR�R
RsRR�R�R	R
R�(RR!R5R�((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestMergeUnexpandedAny�scCsZtj�}d}|jtj��}tj||�WdQX|jt|j�d�dS(NsUany_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string"
s3:11 : Expected "}".(	RR�R}R
R~RsR
RR(RR5R!R�((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestMergeMissingAnyEndToken�s
(RRR�R�RRRRRR
RRRRRR(((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyR�s			
		
								t
TokenizerTestcBs}eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�ZRS(
cTCs�d}tj|j��}|jdfd|jdf|jdfd|jdf|jdfd|jdf|jd	fd|jd
f|jdfd|jdf|jd
fd|jdf|jdfd|jdf|jdfdd|jdfd|jtd�f|jdfd|jtd�f|jdfd|jt	f|jdfd|jt
fd|jdfd|jdf|jdfd|jdf|jdfd|jdf|jdfd|jd f|jd!fd|jd"f|jd#fd|jd$f|jd%fd|jt
f|jd&fd|jt	f|jd'fd|jt	f|jd(fd|jt
f|jd)fd|jt
f|jd*fd|jt	f|jd+fd|jtd�f|jd,fd|jtd-�f|jd.fd|jtd/�fgR}d0}x�|j�s�||}t|t
�rg|j}|j||�|j�nat|d1t�r�tj|d1�r�|jtj|d0���n|j|d1|d0��|d17}qWdS(2Ns�identifier1:"string1"
     

identifier2 : 
 
123  
  identifier3 :'string'
identifiER_4 : 1.1e+2 ID5:-0.23 ID6:'aaaa\'bbbb'
ID7 : "aa\"bb"



 ID8: {A:inf B:-inf C:true D:false}
ID9: 22 ID10: -111111111111111111 ID11: -22
ID12: 2222222222222222222 ID13: 1.23456f ID14: 1.2e+2f false_bool:  0 true_BOOL:t 
 true_bool1:  1 false_BOOL1:f False_bool: False True_bool: True X:iNf Y:-inF Z:nANtidentifier1t:R�tidentifier2i{tidentifier3R�tidentifiER_4g�[@tID5gq=
ףpͿtID6s	aaaa'bbbbtID7saa"bbtID8t{tAtinftBtCtDt}tID9itID10l�����q��{UtID11i��tID12l�c/Y-�vtID13g82�����?tID14g^@t
false_boolt	true_BOOLt
true_bool1tfalse_BOOL1t
False_boolt	True_booltXtYs-inftZtnanii(R
t	Tokenizert
splitlinestConsumeIdentifiert
ConsumeStringtConsumeIntegertConsumeFloattfloattConsumeBoolR?RJtAtEndt
isinstanceRttokenR
t	NextTokentmathtisnanR�(RR!t	tokenizertmethodsR�R�R=((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestSimpleTokenCases�s�
	
& cCsYd
}d}d|d|df}tj|j��}|jd|j��|j|d|j��|j|d|j��|j|j��d}tj|j��}|jd|j��|jd|j��|jt|j��|jt	|j��|j
tj��|j�WdQX|jd|j��|j|j��dS(
Nii?i s-1 %d %di����s
-0 0 0 1.2ig333333�?ll����ll��(
R
R3R4R
R7R�R;R?tTryConsumeIntegerRJR}R~R8(Rt	int64_maxt
uint32_maxR!RA((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestConsumeAbstractIntegers)s$cCs�d	}d}d|d|df}tj|j��}|jtjtj|�|jtjtj|�|jdtj|��|jtjtj|�|jtjtj|�|j|dtj	|��|jtjtj	|�|j|dtj|��|j
|j��d}tj|j��}|jdtj|��|jdtj|��|jdtj|��|jdtj|��|j
|j��dS(Nii?i s-1 %d %di����s	-0 -0 0 0ill����ll��(R
R3R4R}R~t_ConsumeUint32t_ConsumeUint64R
t
_ConsumeInt32t
_ConsumeInt64R�R;(RRERFR!RA((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestConsumeIntegersBs2




cCs�d}tj|j��}|jtj|j�d}tj|j��}|jtj|j�d}tj|j��}|jtj|j�d}tj|j��}|jtj|j�d}tj|j��}|jtj|j�dS(Ns	"string1'sstring1"s
"\xt"s
"\"s
"\x"(R
R3R4R}R~tConsumeByteString(RR!RA((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestConsumeByteStringbscCs5d}tj|j��}|jtj|j�dS(Ns
not-a-bool(R
R3R4R}R~R:(RR!RA((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestConsumeBoolwscCsBtjdj��}|j|j��|jtj|j�dS(Ns# some comment(R
R3R4R�R;R}R~tConsumeComment(RRA((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestSkipComment|scCs[tjdj�dt�}|j|j��|jd|j��|j|j��dS(Ns# some commentt
skip_comments(	R
R3R4RJtassertFalseR;R
RPR�(RRA((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestConsumeComment�s
	cCswd}tj|j�dt�}|jd|j��|j|j��|jd|j��|j|j��dS(Ns # some comment
# another commentRRs# some comments# another comment(	R
R3R4RJR
RPRSR;R�(RR!RA((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestConsumeTwoComments�scCs�d}tj|j�dt�}|jtj|j�|jd|j��|j|j	d�|j
�|jtj|j�|jd|j��|j|j
��|jd|j��|j|j
��dS(Nssome_number: 4
# some commentRRtsome_numberRis# some comment(R
R3R4RJR}R~RPR
R5R=R>R7RSR;R�(RR!RA((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestConsumeTrailingComment�s
cCsatjdj�dt�}|j|j��|jtdf|j��|j|j��dS(Ns# some commentRR(	R
R3R4RJRSR;R
tConsumeCommentOrTrailingCommentR�(RRA((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestConsumeLineComment�s	
cCs�d}tj|j�dt�}|jtdf|j��|j|j��|jtdf|j��|j|j��dS(Ns # some comment
# another commentRRs# some comments# another comment(	R
R3R4RJR
RXRSR;R�(RR!RA((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestConsumeTwoLineComments�s

cCs�d}tj|j�dt�}|jtj|j�|jd|j��|j|j	d�|j
�|jtj|j�|jd|j��|j|j
��|jtdf|j��|j|j
��dS(Nssome_number: 4  # some commentRRRVRis# some comment(R
R3R4RJR}R~RXR
R5R=R>R7RSR;R?R�(RR!RA((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt"testConsumeAndCheckTrailingComment�s



cCs�d}tj|j�dt�}|jd|j��|j|jd�|j�|jd|j��|jt	df|j
��|j|j��dS(Ns2some_number: 4  # some comment # not a new commentRRRVRis"# some comment # not a new comment(
R
R3R4RJR
R5R=R>R7R?RXR�R;(RR!RA((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestHashinComment�s

(RRRCRGRLRNRORQRTRURWRYRZR[R\(((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyR�s	M		 								
	tPrettyPrinterTestcBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCsVd�}|j�}|jj�}d|_|jtj|dtd|�d�dS(NcSs
~~~dS(N(tNone(R5tindentR;((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyRi�s	i*R;tmessage_formatters"repeated_nested_message { bb: 42 }(R-R<R=R>R%R
R3R?(RR4RiR5R@((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrettyPrintNoMatch�s		cs\�fd�}�j�}|jj�}d|_|jtj|dtd|�d�dS(Ncs-~~|j�jjjkr)d|jSdS(NsMy lucky number is %s(R_R-t
NestedMessageR>(R�R_R;(R4(sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyRi�si*R;R`s1repeated_nested_message { My lucky number is 42 }(R-R<R=R>R%R
R3R?(RR4RiR5R@((R4sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrettyPrintOneLine�s	cs��fd�}�j�}|jj�}d|_|jtj|dtd|�d�|jtj|dtd|�d�dS(NcsG|j�jjjkrC|r$dndd|}d||jfSdS(Nt s
sMy lucky number is:%s%s(R_R-RbR>R^(R�R_R;tline_deliminator(R4(sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyRi�si*R;R`s2repeated_nested_message { My lucky number is: 42 }s7repeated_nested_message {
  My lucky number is:
  42
}
(	R-R<R=R>R%R
R3R?RJ(RR4RiR5R@((R4sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrettyPrintMultiLine�s	csi�fd�}�j�}|jtj|dtd|�d�|jtj|dtd|�d�dS(Ncs#~~|j�jjkrdSdS(NsThe is the message!(R_R-R^(R�R_R;(R4(sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyRisR;R`sThe is the message!
sThe is the message!(R-R%R
R3RJR?(RR4RiR5((R4sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrettyPrintEntireMessagescs��fd�}�j�}d|_|jj�}d|_|jj�}d|_|j}d|_|jtj|dt	d|�d�dS(	Ncs-~~|j�jjjkr)d|jSdS(NsMy lucky number is %s(R_R-RbR>R^(R�R_R;(R4(sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyRisi=i*iciR;R`s�optional_int32: 61 optional_nested_message { My lucky number is 1 } repeated_nested_message { My lucky number is 42 } repeated_nested_message { My lucky number is 99 }(
R-R�R<R=R>R�R%R
R3R?(RR4RiR5R@((R4sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyttestPrettyPrintMultiplePartss					(RRRaRcRfRgRh(((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyR]�s
				t__main__(#t__doc__t
__author__R?R'R8R�t	unittest2tunittesttImportErrortgoogle.protobuf.internalRtgoogle.protobufRRRRRRR�RRR	R
tTestCaseRRt
ParametersR,R�R�R�RR]Rtmain(((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/text_format_test.pyt<module>!sF
�������]

Hacked By AnonymousFox1.0, Coded By AnonymousFox