403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.6
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u119869361 ( 9600978)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/breezy/bzr/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/breezy/bzr/tests/__pycache__/test_groupcompress.cpython-313.pyc
�

p��g�����SrSSKrSSKJrJrJrJr SSKJr SSKJ	r	 SSKJ
r
JrJrJ
r
 SS	KJr S
SKJr Sr\	r"S
S\R(5r"SS\5r"SS\5r"SS\5r"SS\R(5r"SS\R45r"SS\5r"SS\R:5r"SS5r"SS \5r "S!S"\R:5r!"S#S$\R(5r"g)%zTests for group compression.�N�)�config�osutils�tests�trace)�
sha_string)�load_tests_apply_scenarios�)�btree_index�
groupcompress�knit�
versionedfile)�index�)�compiled_groupcompress_featurec��SS[R04/n[R"5(a#UR	SS[R
045 U$)N�python�
compressor�C)r�PythonGroupCompressorr�	available�append�PyrexGroupCompressor)�	scenarioss �E/usr/lib/python3/dist-packages/breezy/bzr/tests/test_groupcompress.py�'group_compress_implementation_scenariosrsQ��	�L�-�"E�"E�F�G��I�&�/�/�1�1����#��m�.P�.P�Q�R�S���c� �\rSrSrSrSrSrg)�TestGroupCompressor�)c�|�SR[[SRU5RS555$)N�
r�
)�join�map�repr�split)�self�chunkss  r�_chunks_to_repr_lines�)TestGroupCompressor._chunks_to_repr_lines*s,���y�y��T�3�8�8�F�#3�#9�#9�%�#@�A�B�Brc�d�URURU5URU55 g)aCompare the actual content to the expected content.

:param expected: A group of chunks that we expect to see
:param actual: The measured 'chunks'

We will transform the chunks back into lines, and then run 'repr()'
over them to handle non-ascii characters.
N)�assertEqualDiffr*)r(�expected�actuals   r�assertEqualDiffEncoded�*TestGroupCompressor.assertEqualDiffEncoded-s-��	
����&�&�x�0�$�2L�2L�V�2T�	
r�N)�__name__�
__module__�__qualname__�__firstlineno__r*r0�__static_attributes__r2rrrr)s
��C�
rrc�H�\rSrSrSr\"5rSrSrSr	Sr
SrSrS	r
g)
�TestAllGroupCompressors�;zTests for GroupCompressor.Nc�\�UR5nUR/UR5 g�N)r�assertEqualr))r(rs  r�test_empty_delta�(TestAllGroupCompressors.test_empty_deltaAs$���_�_�&�
�����Z�.�.�/rc�T�UR5nSnURSU/[U5S5up4pVUR[	S5U5 SnURUSRUR55 URSU5 UR[U5U5 g)Nsstrange
common
��labelsfstrange
common
rr)r�compress�lenr=rr$r))r(r�text�sha1�start_point�	end_point�_�expected_liness        r�test_one_nosha_delta�,TestAllGroupCompressors.test_one_nosha_deltaEs����_�_�&�
�#��*4�*=�*=�����D�	�4�+
�'��9�	
����$8�9�4�@�2���������*�2C�2C�)D�E�����K�(�����^�,�i�8rc���UR5nURS/SS5up#pEURSU5 URSU5 URSU5 UR[RU5 URSUR
5 UR/UR5 SnURSU/[U5S5 URUR
S:�5 URS/SS5up#pEURSU5 URSU5 URSU5 UR[RU5 g)N)�emptyr�fulltextssome
bytes
)�content)�empty2)	rrCr=r�
_null_sha1�endpointr)rD�
assertTrue)r(rrFrGrH�kindrEs       r�test_empty_content�*TestAllGroupCompressors.test_empty_contentRs<���_�_�&�
�-7�-@�-@���A�t�.
�*��9�	
����K�(�����I�&�����T�*�����1�1�4�8�����J�/�/�0�����Z�.�.�/������L�4�&�#�d�)�T�B����
�+�+�a�/�0�-7�-@�-@���Q��.
�*��9�	
����K�(�����I�&�����T�*�����1�1�4�8rc�n�UR5nSnURSU/[U5S5un  n[UR5 SnURSU/[U5S5upTpdURS/U4UR
S55 URS/U4UR
S55 g)N�4strange
common long line
that needs a 16 byte match
rA�6common long line
that needs a 16 byte match
different
��newlabel)rrCrD�listr)r=�extract)r(rrE�sha1_1rI�sha1_2rHs       r�test_extract_from_compressor�4TestAllGroupCompressors.test_extract_from_compressorjs����_�_�&�
�I��$�-�-�j�4�&�#�d�)�T�R����1�a��Z�
�
��K��",�"5�"5��D�6�3�t�9�d�#
���9�	
���H�
I�6�R����z�*�	
�
	
���M�N��
�
���}�-�	
rc�8�UR5nSnURSU/[U5S5u   n[UR5nSnURSU/[U5S5u   nUR5 UR
XAR5 g)Nssome text
for the first entry
��key1ssome text
for the second entry
��key2)rrCrDr]r)�pop_lastr=)r(rrErIrJs     r�
test_pop_last�%TestAllGroupCompressors.test_pop_last�s����_�_�&�
�2���(�(��T�F�C��I�t�L�
��1�a���j�/�/�0��3���(�(��T�F�C��I�t�L�
��1�a����������):�):�;rr2)r3r4r5r6�__doc__rrrr>rKrVrarir7r2rrr9r9;s+��$�7�9�I��J�0�9�9�0
�2<rr9c�D�\rSrSr\/r\RrSr	Sr
SrSrg)�TestPyrexGroupCompressor�c
��UR5n/SQnURSU[[[U55S5 /SQnURSU[[[U55S5 /SQnURSU[[[U55S5 URSUR
5S5 g�	N)sstrange
�common very very long line
�plus more text
rA)rqrr�
different
�moredifferent
r[)snew
rqrrrsrt��label3gffffff�?r�rrC�sumr%rD�assertAlmostEqual�ratio�r(rr)s   r�
test_stats�#TestPyrexGroupCompressor.test_stats�����_�_�&�
�U�����J���C��V�4D�0E�t�L�
��	���M�6�3�s�3��7G�3H�$�O�
��	���K���S��f�5E�1F��M����s�J�$4�$4�$6��:rc���UR5nSnURSU/[U5S5un  n[UR5nSnURSU/[U5S5upgp�UR[
U5U5 UR/SQ5 URXQR5 UR[[[U55U5 g�NrYrArZr[)sd�6s�
,s
different
�rrCrDr]r)r=r�extendr0rxr%�	r(rrEr_rIrJr`rGrHs	         r�test_two_nosha_delta�-TestPyrexGroupCompressor.test_two_nosha_delta������_�_�&�
�I��$�-�-�j�4�&�#�d�)�T�R����1�a��j�/�/�0��K��,6�,?�,?��D�6�3�t�9�d�-
�)��Y�	
����D�)�6�2����	
�	
�	
�#�#�N�4E�4E�F�����S��n�5�6�	�Brc��UR5nSnURSU/[U5S5un  nSnURSU/[U5S5un  n[UR5nSnURSU/[U5S5upxp�UR[
U5U5 UR/SQ5 URXaR5 UR[[[U55U	5 g)N�8strange
common very very long line
with some extra text
rA�+different
moredifferent
and then some more
r[�_new
common very very long line
with some extra text
different
moredifferent
and then some more
ru)sds_news�	1�<+r��
r(rrEr_rIr`rJ�sha1_3rGrHs
          r�test_three_nosha_delta�/TestPyrexGroupCompressor.test_three_nosha_delta�����_�_�&�
�M��$�-�-�j�4�&�#�d�)�T�R����1�a�@��$�-�-�m�d�V�S��Y�PT�U����1�a��j�/�/�0��
>�	
�-7�,?�,?��$���T��D�-
�)��Y�	
����D�)�6�2����
�
	
�	
�#�#�N�4E�4E�F�����S��n�5�6�	�Brr2N)
r3r4r5r6r�_test_needs_featuresrrrr|r�r�r7r2rrrmrm�s'��:�;���3�3�J�;�*C�2 Crrmc�>�\rSrSr\R
rSrSrSr	Sr
g)�TestPythonGroupCompressor��c
��UR5n/SQnURSU[[[U55S5 /SQnURSU[[[U55S5 /SQnURSU[[[U55S5 URSUR
5S5 grprwr{s   rr|�$TestPythonGroupCompressor.test_stats�r~rc���UR5nSnURSU/[U5S5un  n[UR5nSnURSU/[U5S5upgp�UR[
U5U5 UR/SQ5 URXQR5 UR[[[U55U5 gr�r�r�s	         rr��.TestPythonGroupCompressor.test_two_nosha_delta�r�rc��UR5nSnURSU/[U5S5un  nSnURSU/[U5S5un  n[UR5nSnURSU/[U5S5upxp�UR[
U5U5 UR/SQ5 URXaR5 UR[[[U55U	5 g)Nr�rAr�r[r�ru)sds_new
s�
0�<+r�r�s
          rr��0TestPythonGroupCompressor.test_three_nosha_deltar�rr2N)r3r4r5r6rrrr|r�r�r7r2rrr�r��s���4�4�J�;�*C�2 Crr�c�P�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
Srg
)�TestGroupCompressBlocki7c
��[R"5n[U5H%nURX1U/[	X5S5 M' UR
R
5VVVVs0sH
unupEpeX4U4_M nnnnnUR5nUR5n	U[RRU	54$s snnnnf�z=Create a GroupCompressBlock, filling it with the given texts.N�r�GroupCompressor�sortedrCrD�
labels_deltas�items�flush�to_bytes�GroupCompressBlock�
from_bytes�
r(�key_to_textr�key�startrI�end�locs�block�	raw_bytess
          r�
make_block�!TestGroupCompressBlock.make_block8s���"�2�2�4�
��+�&�C�����#�&6�%7��[�=M�9N�PT�U�'�,6�+C�+C�+I�+I�+K�
�+K�'��'�e��
����+K�	
�
�� � �"���N�N�$�	��]�5�5�@�@��K�K�K��
��)C
c�b�UR[[RRS5 g)Nr��assertRaises�
ValueErrorrr�r��r(s r�test_from_empty_bytes�,TestGroupCompressBlock.test_from_empty_bytesGs!�����*�m�&F�&F�&Q�&Q�SV�Wrc��[RRS5nURU[R5 UR	SUR
5 UR
SUR5 UR5 UR
SUR
5 UR
SUR5 UR5 g)Ns
gcb1z
0
0
r)	rr�r��assertIsInstance�assertIs�_contentr=�
_z_content�_ensure_content)r(r�s  r�test_from_minimal_bytes�.TestGroupCompressBlock.test_from_minimal_bytesJs����0�0�;�;�<L�M�����e�]�%E�%E�F��
�
�d�E�N�N�+�����e�.�.�/�
��������e�n�n�-�����e�.�.�/�
���rc�b�UR[[RRS5 g)Nsthis is not a valid headerr�r�s r�test_from_invalid�(TestGroupCompressBlock.test_from_invalidTs%�������,�,�7�7�)�	
rc�4�Sn[R"U5nS[U5[U5U4-n[RRU5nUR
X$R5 URSUR5 UR
[U5UR5 UR
[U5UR5 UR5 UR
X$R5 UR
XR5 g)Nsa tiny bit of content
sgcb1z
%d
%d
%s)
�zlibrCrDrr�r�r=r�r�r��_z_content_length�_content_lengthr�)r(rP�	z_content�z_bytesr�s     r�test_from_bytes�&TestGroupCompressBlock.test_from_bytes[s���,���M�M�'�*�	�
���^�S��\�9�5�6���0�0�;�;�G�D������$4�$4�5��
�
�d�E�N�N�+�����Y���)@�)@�A�����W��u�'<�'<�=�
��������$4�$4�5�����.�.�1rc��SS/n[[[U55nSRU5n[R
"5nUR
X5 UR5upVSRU5nURUR[UR55 URU[U55 URURU5 SURUR4-nURX�S5 URXx5 U[U5Sn	[R"U	5n
URX:5 g)Nsthis is some content
s this content will be compressed
r�gcb1z
%d
%d
r)rxr%rDr$rr��set_chunked_content�	to_chunksr=r�r�r��assertStartsWithr��
decompress)r(�content_chunks�content_lenrP�gcb�	total_len�block_chunks�block_bytes�expected_header�remaining_bytesr�s           r�test_to_chunks�%TestGroupCompressBlock.test_to_chunksms$��%�0�
���#�c�>�2�3���(�(�>�*���.�.�0������<�"%�-�-�/��	��h�h�|�,������.�.��C�N�N�0C�D�����C��$4�5�����,�,�k�:�
��
"�
"�C�$7�$7�8�	9��	
����q�/�:����k�;�%�c�/�&:�&<�=���O�O�O�4�	�����,rc��Sn[R"5nURU5 UR5nUR	UR
[
UR55 UR	UR[
U55 SUR
UR4-nURX45 U[
U5Sn[R"U5nUR	X5 [R"5nURS/[
U55 UnUR5nUR	Xs5 g)Ns5this is some content
this content will be compressed
r�)
rr��set_contentr�r=r�rDr�r�r�r�r�r�)r(rPr��datar�r�r��old_datas        r�
test_to_bytes�$TestGroupCompressBlock.test_to_bytes�s��L���.�.�0������ ��|�|�~������.�.��C�N�N�0C�D�����,�,�c�'�l�;�
��
"�
"�C�$7�$7�8�	9��
	
���d�4��s�?�3�5�6���O�O�O�4�	�����,��.�.�0�����
G�H���L�	
����|�|�~������(rc���/n[S5HDnSU4-nURU5 [R"U5nURUS-5 MF SR	U5nURS[
U55 [R"U5nURS[
U55 [R"5nU4Ul[
U5UlSUl
SUlURSUR 5 UR#S5 UR%SUR 5 UR'[
UR 5S:�5 UR'[
UR 5S:5 UR)US[
UR 5UR 5 [
UR 5nUR#US	-
5 URU[
UR 55 US	-
nUR#U5 UR'[
UR 5U:�5 UR'[
UR 5S:5 UR)US[
UR 5UR 5 UR#S5 UR)XWR 5 URSUR*5 g)
N��#%d
This is a bit of duplicate text
r#r�k�^�r��d�
)�rangerrrr$r=rDr�rCrr��_z_content_chunksr��_compressor_namer�r�r�r��assertIsNotrTr-�_z_content_decompressor)	r(r��i�next_content�	next_sha1rPr�r��cur_lens	         r�test_partial_decomp�*TestGroupCompressBlock.test_partial_decomp�s:����
�t��A�C�q�d�J�L��!�!�,�/��*�*�<�8�I��!�!�)�e�"3�4�	�
�(�(�>�*�������W��.��M�M�'�*�	������I��/��0�0�2��#,�,���"%�i�.���!'��� &����
�
�d�E�N�N�+�
���c�"�����u�~�~�.�����E�N�N�+�s�2�3�����E�N�N�+�f�4�5����W�%:�s�5�>�>�':�;�U�^�^�L��e�n�n�%��
���g��l�+�����#�e�n�n�"5�6��2�
��
���g�&�����E�N�N�+�w�6�7�����E�N�N�+�f�4�5����W�%:�s�5�>�>�':�;�U�^�^�L�
���f�%����W�n�n�5��
�
�d�E�9�9�:rc��/n[S5HDnSU4-nURU5 [R"U5nURUS-5 MF SR	U5nURS[
U55 [R"U5nURS[
U55 [R"5nU4Ul[
U5UlSUl
SUlURSUR 5 UR#S5 UR%XWR 5 URSUR&5 g)Nr�r�r#rr�r�r�)r�rrrr$r=rDr�rCrr�r�r�r�r�r�r�r�r-r�)r(r�r�r�r�rPr�r�s        r�test__ensure_all_content�/TestGroupCompressBlock.test__ensure_all_content�s����
�t��A�C�q�d�J�L��!�!�,�/��*�*�<�8�I��!�!�)�e�"3�4�	�
�(�(�>�*�������W��.��M�M�'�*�	������I��/��0�0�2��#,�,���"%�i�.���!'��� &����
�
�d�E�N�N�+�
���f�%����W�n�n�5�	
�
�
�d�E�9�9�:rc��SnUS-US-S.nURU5up4URS[US54SS[US	5S
S[U54S[S5S
4/4/UR55 g)Ns2some duplicate content
which is sufficiently long
s	1 unique
s2 extra special
)��1��2�fr��d�r��cr
�ir)r�r=rD�_dump)r(�dup_contentr�r�r�s     r�
test__dump�!TestGroupCompressBlock.test__dump�s���M�� �=�0� �#7�7�
���o�o�k�2�������s�;�w�/�0�1�����G�,�-��q�#�k�"2�3��s�#7�8�#�>��	�
�
�K�K�M�	
rr2N)r3r4r5r6r�r�r�r�r�r�r�r�r�rr7r2rrr�r�7s7��
L�X� �
�2�$-�6)�6+;�Z;�8
rr�c�&�\rSrSrSSjrSrg)�'TestCaseWithGroupCompressVersionedFilesic���URU5nUR5 [R"USUUS9"U5nU(a UR	[R
U5 U$)NF��graph�delta�	keylength�inconsistency_fatal��
get_transport�ensure_baser�make_pack_factory�
addCleanup�cleanup_pack_group)r(�create_graphr�
do_cleanup�dirr
�t�vfs        r�make_test_vf�4TestCaseWithGroupCompressVersionedFiles.make_test_vfsa��
���s�#��	�
�
��
�
,�
,���� 3�	
�
�
����O�O�M�<�<�b�A��	rr2N)rT�.T)r3r4r5r6rr7r2rrrrs����� �
rrc��\rSrSrSSjrSrSrSrSr\	SS	j5r
S
rSrSr
S
rSrSrSrSrSrSrSrg)�TestGroupCompressVersionedFilesiNc��Uc/n[R"U5nUHupVnURXVU5 M UR5nUR	5n	U	RX5n
[R"X�U
5$r<)r�BTreeBuilder�add_node�finishr�put_file�BTreeGraphIndex)r(�name�	ref_lists�nodes�builder�node�
references�value�stream�trans�sizes           r�make_g_index�,TestGroupCompressVersionedFiles.make_g_indexsv���=��E��*�*�9�5��',�#�D�e����T�u�5�(-����!���"�"�$���~�~�d�+���*�*�5��=�=rc	�D�URSSSS/44SSSS/44/5nU$)N�missing_parentr)sparents	2 78 2 10)stip�smissing-parent)r.)r(�graph_indexs  r�make_g_index_missing_parent�;TestGroupCompressVersionedFiles.make_g_index_missing_parent&sD���'�'��
��|�b�U�3��L�L�:N�+O�*Q�R�
�
���rc���URSSS9nURSSS/5 URSSS/5 URSSS/5 URS	SS/5 URR5 UR	/S
QSS5Vs/sHnUR
PM nnUR
/S
QU5 UR	/SQSS5Vs/sHnUR
PM nnUR
/SQU5 URSS
S9nURUR	/SQSS55 URR5 UR	/S
QSS5Vs/sHnUR
PM nnUR
/S
QU5 UR	/SQSS5Vs/sHnUR
PM nnUR
/SQU5 gs snfs snfs snfs snf)NF�source�r��ar2�lines
��b�r�r�)r9r<r>r?zas-requested)r<r9r?r>�target)r�	add_lines�writerr��get_record_streamr�r=�insert_record_stream)r(r�record�keys�vf2s     r�#test_get_record_stream_as_requested�CTestGroupCompressVersionedFiles.test_get_record_stream_as_requested1s	���
�
�u�(�
�
3��
���W�b�:�,�/�
���W�b�:�,�/�
���W�b�:�,�/�
���W�b�:�,�/�
�	�	�
�
���.�.�4�n�e��
���
�J�J��	
�
�	
���=�t�D��.�.�4�n�e��
���
�J�J��	
�
�	
���=�t�D�����8��4��� � �� � �4�n�e�
�	
�
	�
�
�����/�/�4�n�e��
���
�J�J��	
�
�	
���=�t�D��/�/�4�n�e��
���
�J�J��	
�
�	
���=�t�D��K
��
��"
��
s�G�G�&G �)G%c�"�URSSS9nURSSS/5 URR5 [	URS/SS55nUR
URURR55 g)NTr7r8r9r2r;�	unordered)
rrArBr��nextrCr=�_DEFAULT_COMPRESSOR_SETTINGS�_manager�_get_compressor_settings�r(rrEs   r�1test_get_record_stream_max_bytes_to_index_default�QTestGroupCompressVersionedFiles.test_get_record_stream_max_bytes_to_index_defaultasw��
�
�
�t��
�
2��
���W�b�:�,�/�
�	�	�
�
���b�*�*�G�9�k�4�H�I������+�+�V�_�_�-U�-U�-W�	
rc� �URSSS9nURSSS/5 URR5 SUl[UR
S/SS55nURS	S0URR55 g)
NTr7r8r9r2r;i�rK�max_bytes_to_index)
rrArBr��_max_bytes_to_indexrLrCr=rNrOrPs   r�3test_get_record_stream_accesses_compressor_settings�STestGroupCompressVersionedFiles.test_get_record_stream_accesses_compressor_settingsjs~��
�
�
�t��
�
2��
���W�b�:�,�/�
�	�	�
�
��!%����b�*�*�G�9�k�4�H�I�����
!�4�(�&�/�/�*R�*R�*T�	
rr2c#�p# �UnUH*nU4n[R"UUSSU4-5nUv� U4nM, g7f)Ns9some content that is
identical except for
revision_id:%s
)r�FulltextContentFactory)�revision_ids�
first_parents�parents�revision_idr�rEs      r�grouped_stream�.TestGroupCompressVersionedFiles.grouped_streamtsQ�����'�K��.�C�"�9�9����$�'2�n�5�	�F��L��f�G�(�s�46c�*^	^
�URSSS9m
T
RUR/SQ55 T
RUR/SQSS95 0nT
RSVs/sHo"R	54PM snS	S
5nSnUH}nUR
S;aUR
S
UR5 OUR
SUR5 URRRXR
'US-
nM UR
SU5 SHBnUR	54nURXUS5 URXUS5 MD SHBnUR	54nURXUS5 URXUS5 MD URSSS9nSVs/sHo"R	54PM snm	U	U
4SjnURU"55 URT	SS
5nURR5 SnUHDnUS-
nUR
XR
URRR5 MF UR
SU5 gs snfs snf)NTr7r8�r:r=rr���er��g�h�r?�r[�abcdefghrKFr)r9�rc�groupcompress-blockzgroupcompress-block-refr��abcdr9ri�efghr@c3�># �TRTSS5H6nURRRURlUv� M8 g7f)NrF)rCrN�_blockr��_full_enough_block_size)rErFrs ��r�small_size_stream�bTestGroupCompressVersionedFiles.test_insert_record_stream_reuses_blocks.<locals>.small_size_stream�sF�����.�.�t�_�e�L���O�O�*�*�:�:����7���	M�s�AAr)rrDr^rC�encoder�r=�storage_kindrNror�r��assertNotEqualrBr�)r(r��rr+�num_recordsrEr�rGrqrFrs         @@r�'test_insert_record_stream_reuses_blocks�GTestGroupCompressVersionedFiles.test_insert_record_stream_reuses_blocks�s`���
�
�
�t��
�
2��
���� 3� 3�4L� M�N�
������ 8�
��S�	
����%�%�$.�/�J�q�h�h�j�]�J�/��e�
�����F��z�z�/�/�� � �!6��8K�8K�L�� � �!:�F�<O�<O�P�&,�o�o�&<�&<�&G�&G�K�
�
�#��1��K�
�	
����K�(��A��8�8�:�-�C��M�M�+�*�K��,@�A����� 0�+�g�2F�G���A��8�8�:�-�C��M�M�+�*�K��,@�A����� 0�+�g�2F�G������(��3��'1�2�z�!����
�z�2��	�	� � �!2�!4�5��&�&�t�_�e�D���
�
�������F��1��K����[���4�f�o�o�6L�6L�6W�6W�X��	
����K�(��Q
0��,3s�'J�Jc�z�URSSS9nURUR/SQ55 URUR/SQSS95 URSSS9nS	Vs/sHo3R54PM nnURUR	US
S55 UR	US
S5nUR
R
5 SnSnUHHnUS
-
nUcURRnM#URXxRR5 MJ URSU5 gs snf)NTr7r8rarbrfrgr@rhrFrrrk)rrDr^rsrCrBr�rNror�r=)	r(rrGrvrFr+rwr�rEs	         r�*test_insert_record_stream_packs_on_the_fly�JTestGroupCompressVersionedFiles.test_insert_record_stream_packs_on_the_fly�s"��
�
�
�t��
�
2��
���� 3� 3�4L� M�N�
������ 8�
��S�	
�����(��3��'1�2�z�!����
�z��2�� � ��!5�!5�d�O�U�!S�T��&�&�t�_�e�D���
�
���������F��1��K��}����.�.���
�
�e�_�_�%;�%;�<��	
����K�(��3s�(D8c��URSSS9nURUR/SQ55 URUR/SQSS95 URR	5 SVs/sHo"R54PM nnUR
S	[[URUS
S5555 URSSS9n[URURUS
S5SS95 URR	5 URUS
S5nSnUHCnUcURRnMURXgRR5 ME gs snf)NTr7r8rarbrfrgrhrkrKFr@r)�reuse_blocks)rrDr^rBr�rsr=rDr]rC�_insert_record_streamrNror�)r(rrvrFrGr+r�rEs        r�)test__insert_record_stream_no_reuse_block�ITestGroupCompressVersionedFiles.test__insert_record_stream_no_reuse_block�sR��
�
�
�t��
�
2��
���� 3� 3�4L� M�N�
������ 8�
��S�	
�	�	�	�
�
��'1�2�z�!����
�z��2�����C��R�%9�%9�$��U�%S� T�U�V�����(��3��	
��%�%��$�$�T�?�E�B�QV�
&�
�	
�
	�
�
�����&�&�t�_�e�D�����F��}����.�.���
�
�e�_�_�%;�%;�<�	��#3s�2E6c��UR5n[R"U/5n[R"USSSS9nURU5 UR
[S/5UR55 g)Nc��g�NTr2r2rr�<lambda>�jTestGroupCompressVersionedFiles.test_add_missing_noncompression_parent_unvalidated_index.<locals>.<lambda>����drT)�	is_lockedr\�track_external_parent_refsr2)	r4�
_mod_index�CombinedGraphIndexr�
_GCGraphIndex�scan_unvalidated_indexr=�	frozenset�get_missing_parents)r(�unvalidated�combinedrs    r�8test_add_missing_noncompression_parent_unvalidated_index�XTestGroupCompressVersionedFiles.test_add_missing_noncompression_parent_unvalidated_index�sp���6�6�8���0�0�+��?���+�+��"��'+�	
��	�$�$�[�1�����$8�#9�:�E�<U�<U�<W�Xrc�N�URSS/5n[R"SS5n[R"X/5n[
R"USSURSS9nURSSS/4/5 UR[S	S
/5UR55 g)NrNrc��gr�r2r2rrr��QTestGroupCompressVersionedFiles.test_track_external_parent_refs.<locals>.<lambda>r�rT)r�r\�add_callbackr�)snew-keys	2 10 2 10)�sparent-1�sparent-2r�r�)r.rrr�r�rr��	add_nodes�add_recordsr=r�r�)r(�g_index�	mod_indexr�rs     r�test_track_external_parent_refs�?TestGroupCompressVersionedFiles.test_track_external_parent_refs�s����#�#�G�Q��3���,�,�Q��2�	��0�0�'�1E�F���+�+��"��"�,�,�'+�
��	����\�,L�+M�
N�O�	
�	
����~�~�6�7��9R�9R�9T�	
rc��URSUS9nURSSS/5 U(aSnOSnURSUS/5 U$)NTr8r9r2r;)r9r<)rrA)r(�a_parent�pathr7�	b_parentss     r�make_source_with_b�2TestGroupCompressVersionedFiles.make_source_with_bsQ���"�"�4�T�"�2������"�z�l�3��"�I��I�����)�j�\�:��
rc���URSSUS9n[S5HJnURUS:HSRU55nUR	URS/SS	55 ML g)
NTr@)rr
r
rzsource{}r<rKF)rr�r��formatrDrC)r(r
r@�xr7s     r�do_inconsistent_inserts�7TestGroupCompressVersionedFiles.do_inconsistent_insertssr���"�"��h�4G�#�
���q��A��,�,�Q�!�V�Z�5F�5F�q�5I�J�F��'�'��(�(�'��K��G�
�rc��^�/mU4Sjn[RnU[lURSS9 U[lURSR	T5S5 g!U[lf=f)z3Should not insert a record that is already present.c�,>�TRX-5 gr<�r)�template�args�warningss  �r�warning�YTestGroupCompressVersionedFiles.test_inconsistent_redundant_inserts_warn.<locals>.warning)s����O�O�H�O�,rF�r
r"zy^inconsistent details in skipped record: \(b?'b',\) \(b?'42 32 0 8', \(\(\),\)\) \(b?'74 32 0 8', \(\(\(b?'a',\),\),\)\)$N)rr�r��assertContainsRer$)r(r��_trace_warningr�s   @r�(test_inconsistent_redundant_inserts_warn�HTestGroupCompressVersionedFiles.test_inconsistent_redundant_inserts_warn%sf�����	-�������
�	+��(�(�U�(�C�*�E�M�����I�I�h��
9�	
��+�E�M�s�A"�"
A/c��UR[RURSS9nUR	[U5S5 g)NTr�z�Knit.* corrupt: inconsistent details in add_records: \(b?'b',\) \(b?'42 32 0 8', \(\(\),\)\) \(b?'74 32 0 8', \(\(\(b?'a',\),\),\)\))r�r
�KnitCorruptr�r��str)r(�es  r�*test_inconsistent_redundant_inserts_raises�JTestGroupCompressVersionedFiles.test_inconsistent_redundant_inserts_raises9sG��������d�:�:�PT�
�
��	
�����F�
8�	
rc�L�URSS5nURR5 URSS/SS5HnM UR	[UR5S:�5 UR5 URS[UR55 g)NTr7r9r<rKr)	r�rBr�rCrTrD�_group_cache�clear_cacher=)r(r�_records   r�test_clear_cache�0TestGroupCompressVersionedFiles.test_clear_cacheEs���
�
$�
$�T�8�
4��
�	�	�
�
���+�+�W�g�,>��T�R�G��S�����B�O�O�,�q�0�1�
��������C����0�1r)rN)r2)r3r4r5r6r.r4rHrQrV�staticmethodr^rxr{r�r�r�r�r�r�r�r�r7r2rrrrsf��	>�	�.E�`
�
��
��
�2)�h)�6=�@
Y�
�$��
�(

�2rrc�,�\rSrSrSrSrSrSrSrg)�TestGroupCompressConfigiOc���URS5nUR5 [R"SSSSS9nU"U5nUR	[R
U5 U$)NrTFrr	r)r(r�factoryrs    rr�$TestGroupCompressConfig.make_test_vfPsX�����s�#��	�
�
���1�1��e�q�d�
���Q�Z�����
�8�8�"�=��	rc�0�UR5nUR5nURURUR5 [U[R5(a1URURURR5 ggr<)	r�_make_group_compressorr=�_DEFAULT_MAX_BYTES_TO_INDEXrU�
isinstancerr�_delta_index)r(r�gcs   r�test_max_bytes_to_index_default�7TestGroupCompressConfig.test_max_bytes_to_index_defaultZsu��
�
�
�
 ��
�
&�
&�
(������7�7��9O�9O�P��b�-�<�<�=�=�����.�.����0S�0S�
�>rc�V�[R"5nURSS5 UR5nUR	5nURSUR5 [U[R5(a'URSURR5 gg)N�$bzr.groupcompress.max_bytes_to_index�10000i')r�GlobalConfig�set_user_optionrr�r=rUr�rrr��r(�crr�s    r�!test_max_bytes_to_index_in_config�9TestGroupCompressConfig.test_max_bytes_to_index_in_configcs������!��	���@�'�J�
�
�
�
 ��
�
&�
&�
(������� 6� 6�7��b�-�<�<�=�=����U�B�O�O�$G�$G�H�>rc�~�[R"5nURSS5 UR5nUR	5nURURUR5 [U[R5(a1URURURR5 gg)Nr��boogah)rr�r�rr�r=r�rUr�rrr�r�s    r�"test_max_bytes_to_index_bad_config�:TestGroupCompressConfig.test_max_bytes_to_index_bad_configls������!��	���@�(�K�
�
�
�
 ���
&�
&�
(������7�7��9O�9O�P��b�-�<�<�=�=�����.�.����0S�0S�
�>rr2N)	r3r4r5r6rr�r�r�r7r2rrr�r�Os����I�rr�c�$�\rSrSrSSjrSrSrg)�StubGCVFizNc�2�0UlU=(d /Ulgr<)r��_canned_get_blocks)r(�canned_get_blockss  r�__init__�StubGCVF.__init__{s�����"3�"9�r��rc�,�[UR5$r<)�iterr�)r(�
read_memoss  r�_get_blocks�StubGCVF._get_blockss���D�+�+�,�,r)r�r�r<)r3r4r5r6r�r�r7r2rrr�r�zs��:�-rr�c�<�\rSrSrSrSrSrSrSrSr	Sr
S	rg
)�Test_BatchingBlockFetcheri�z5Simple whitebox unit tests for _BatchingBlockFetcher.c��SnSUS-SSS40n[R"[5U5nURS5nUR	SU5 UR	S/UR
5 UR	U/UR5 g)zmAdding a key with an uncached read_memo new to this batch adds that
read_memo to the list of memos to fetch.
��
fake indexr��2�r��NNNr��r�_BatchingBlockFetcherr��add_keyr=rF�memos_to_get�r(�	read_memo�	locations�batcher�
total_sizes     r�test_add_key_new_read_memo�4Test_BatchingBlockFetcher.test_add_key_new_read_memo�s���,�	��	�L� 8�$��d�K�L�	��5�5�h�j�)�L���_�_�X�.�
�����Z�(����(��W�\�\�2����)��g�&:�&:�;rc�J�SnUS-SSS4US-SSS4S.n[R"[5U5nURS5nURS5nUR	SU5 UR	SS/UR
5 UR	U/UR5 g)	zKread_memos that occur multiple times in a batch will only be fetched
once.
r�)rrN)rr
�rdrfrdrfr�r�r�s     r� test_add_key_duplicate_read_memo�:Test_BatchingBlockFetcher.test_add_key_duplicate_read_memo�s���,�	�"�F�*�D�$��=�!�F�*�D�$��=�
�	� �5�5�h�j�)�L���_�_�Y�/�
��_�_�Y�/�
�����Z�(����)�Y�/����>����)��g�&:�&:�;rc�4�Sn[5nSURU'SUS-SSS40n[R"X#5nUR	S5nURSU5 URS/UR5 UR/UR5 g)zeAdding a key with a cached read_memo will not cause that read_memo
to be added to the list to fetch.
r�z
fake blockr�r�Nr)r�r�rr�r�r=rFr�)r(r��gcvfr�r�r�s      r�test_add_key_cached_read_memo�7Test_BatchingBlockFetcher.test_add_key_cached_read_memo�s���,�	��z��'3����)�$��	�L� 8�$��d�K�L�	��5�5�d�F���_�_�X�.�
�����J�'����(��W�\�\�2�����W�1�1�2rc��[R"[505nUR/[	UR555 g)z#An empty batch yields no factories.N)rr�r�r=r]�yield_factories)r(r�s  r�test_yield_factories_empty�4Test_BatchingBlockFetcher.test_yield_factories_empty�s4���5�5�h�j�"�E������T�'�"9�"9�";�<�=rc�0�SnSn[U[R"54U[R"54/S9nUS-SSS4US-SSS4S.n[R"X45nUR	S5 UR	S5 [UR
S	S
95nURSU5 UVs/sHowRPM nnUVs/sHowRPM n	nURSS/U5 URSS/U	5 gs snfs snf)
z,Uncached memos are retrieved via get_blocks.r�)r���()r��rrNr�rdrfT��
full_flushr
rj)r�rr�r�r�r]r�assertLengthr�rtr=)
r(�
read_memo1�
read_memo2rr�r��	factories�frF�kindss
          r�%test_yield_factories_calls_get_blocks�?Test_BatchingBlockFetcher.test_yield_factories_calls_get_blocks�s��,�
�,�
���]�=�=�?�@��]�=�=�?�@��
��#�V�+�T�4��>�"�V�+�T�4��>�
�	� �5�5�d�F�����	�"����	�"���0�0�D�0�A�B�	����!�Y�'�(�)�y�!���y��)�)2�3��A�����3����)�Y�/��6����/�1F�G��O��*��3s�3D�Dc���[R"5nSn[5nXRU'SUS-SSS40n[R"X45nURS5 UR
/[UR555 [URSS95nURSU5 UR
SUSR5 UR
S	USR5 g)
zcyield_factories holds back on yielding results from the final block
unless passed full_flush=True.
r�r�r
NTrrrrj)rr�r�r�r�r�r=r]rrr�rt)r(�
fake_blockr�rr�r�rs       r�test_yield_factories_flushing�7Test_BatchingBlockFetcher.test_yield_factories_flushing�s���#�5�5�7�
�+�	��z��'1���)�$��	�F� 2�D�$��E�F�	��5�5�d�F������!�����T�'�"9�"9�";�<�=���0�0�D�0�A�B�	����!�Y�'�����9�Q�<�#3�#3�4����.�	�!��0I�0I�Jrr2N)r3r4r5r6rkr�rrrrrr7r2rrr�r��s%��?�<� <�$3�>�
P�0Krr�c��\rSrSrSSSSS.rSrSrS	rS
rSr	Sr
S
rSrSr
SrSrSrSrSrSrSrSrg)�TestLazyGroupCompressi�snthis is a text
with a reasonable amount of compressible bytes
which can be shared between various other texts
slanother text
with a reasonable amount of compressible bytes
which can be shared between various other texts
s�yet another text which won't be extracted
with a reasonable amount of compressible bytes
which can be shared between various other texts
s�this will be extracted
but references most of its bytes from
yet another text which won't be extracted
with a reasonable amount of compressible bytes
which can be shared between various other texts
)�skey1�skey2�skey3�skey4c
��[R"5n[U5H%nURX1U/[	X5S5 M' UR
R
5VVVVs0sH
unupEpeX4U4_M nnnnnUR5nUR5n	U[RRU	54$s snnnnfr�r�r�s
          rr�� TestLazyGroupCompress.make_block�s���"�2�2�4�
��+�&�C�����#�&6�%7��[�=M�9N�PT�U�'�,6�+C�+C�+I�+I�+K�
�+K�'��'�e��
����+K�	
�
�� � �"���N�N�$�	��]�5�5�@�@��K�K�K��

r�c�6�X!upVURUSXV5 g)Nr2)�add_factory)r(r�r�r��managerr�r�s       r�add_key_to_manager�(TestLazyGroupCompress.add_key_to_managers���^�
�����C��U�0rc��URU5up#[R"U5n[U5HnUR	XRX45 M X44$r<)r�r�_LazyGroupContentManagerr�r')r(�textsr�r�r&r�s      r�make_block_and_full_manager�1TestLazyGroupCompress.make_block_and_full_managersI���?�?�5�1��	��8�8��?���%�=�C��#�#�C�E�C�!��~�rc�2�URUR5up[R"U5nUR	SXU5 UR	SXU5 /nUR5HWnUR
UR5 URURnURXeRS55 MY URSS/U5 [R"U5nUR	SXU5 UR	SXU5 /nUR5HWnUR
UR5 URURnURXeRS55 MY URSS/U5 g)NrrrO)
r��_textsrr*r'rCrr�r=�get_bytes_as)r(r�r�r&�result_orderrErEs       r�test_get_fulltexts�(TestLazyGroupCompress.test_get_fulltextssY���?�?�4�;�;�7��	��8�8��?�����
�I�g�F����
�I�g�F����/�/�1�F�����
�
�+��;�;�v�z�z�*�D����T�#6�#6�z�#B�C�2�	
���*�j�1�<�@� �8�8��?�����
�I�g�F����
�I�g�F����/�/�1�F�����
�
�+��;�;�v�z�z�*�D����T�#6�#6�z�#B�C�2�	
���*�j�1�<�@rc��URUR5up[R"U5nUR	5n[UR
55nURR
5nURU[U5:�5 [R"S5nURS[U5Xv4-U5 g)Nrsgroupcompress-block
8
0
%d
%s%s)r�r/rr*�_wire_bytesrDr�rorTr�rCr=)r(r�r�r&�
wire_bytes�block_length�stripped_block�empty_z_headers        r�test__wire_bytes_no_keys�.TestLazyGroupCompress.test__wire_bytes_no_keys's����?�?�4�;�;�7��	��8�8��?���(�(�*�
��5�>�>�+�,�� ���0�0�2������s�>�':�:�;����s�+�����
�
��(�.�I�
J�
�	
rc��URUR5up[R"U5nUR	SXU5 UR	SXU5 UR5nUR
5nURSS5upgp�n
[U5n[U5n[U	5n	URSU5 URSU5 URSU5 UR[U5U	5 U
SUn[R"U5nURU[U55 USn
USnURSU
S	U
S
US	US
4-U5 X�SnURXO5 g)Nrr!r#�sgroupcompress-block�"�skey1

%d
%d
key4

%d
%d
rr)r�r/rr*r'r�r5r'�intr=rDr�r�r-)r(r�r�r&r�r6rt�z_header_len�
header_len�	block_len�rest�z_header�header�entry1�entry4�z_blocks                r�test__wire_bytes�&TestLazyGroupCompress.test__wire_bytes:s~���?�?�4�;�;�7��	��8�8��?�����
�I�g�F����
�I�g�F��n�n�&���(�(�*�
�DN�DT�DT��1�E
�A��Z�D��<�(����_�
��	�N�	����/��>�����\�*�����Z�(�����[�)�9�5��
��&������*������S��[�1��:�&���:�&�����
��a�y�&��)�V�A�Y��q�	�B�
C�
�
	
��}�%������.rc�$�URUR5up[R"U5nUR	SXU5 UR	SXU5 UR5nUR
US5 [RRU5nURU[R5 URS[UR55 URURURR5 /nUR5HWnURUR 5 URUR nURXvR#S55 MY URSS/U5 g)Nrr!sgroupcompress-block
r
rO)r�r/rr*r'r5r�r�r�r=rD�
_factoriesr�rorCrr�r0)r(r�r�r&r6r1rErEs        rr��%TestLazyGroupCompress.test_from_bytes^s=���?�?�4�;�;�7��	��8�8��?�����
�I�g�F����
�I�g�F��(�(�*�
����j�*B�C��8�8�C�C�J�O�����g�}�'M�'M�N�����C�� 2� 2�3�4�����)�)�7�>�>�+D�+D�E����/�/�1�F�����
�
�+��;�;�v�z�z�*�D����T�#6�#6�z�#B�C�2�	
���*�j�1�<�@rc��URUR5upUR5 URXR5 gr<)r,r/�_check_rebuild_blockr�ro�r(r�r&s   r�test__check_rebuild_no_changes�4TestLazyGroupCompress.test__check_rebuild_no_changesps4���9�9�$�+�+�F����$�$�&��
�
�e�^�^�,rc� �URUR5up[R"U5nUR	SXU5 UR5 UR
X#R5 URURURR:�5 UR5HWnURSUR5 URURURURS55 MY g)NrrO�r�r/rr*r'rPr�rorTr�rCr=r�r0�r(r�r�r&rEs     r�test__check_rebuild_only_one�2TestLazyGroupCompress.test__check_rebuild_only_oneus����?�?�4�;�;�7��	��8�8��?�����
�I�g�F��$�$�&�������/�����-�-����0N�0N�N�O��/�/�1�F����Z����4����T�[�[����4�f�6I�6I�*�6U�V�2rc� �URUR5up[R"U5nUR	SXU5 UR5 UR
X#R5 URURURR:�5 UR5HWnURSUR5 URURURURS55 MY g)Nr!rOrUrVs     r�test__check_rebuild_middle�0TestLazyGroupCompress.test__check_rebuild_middle�s����?�?�4�;�;�7��	��8�8��?�����
�I�g�F��$�$�&�������/�����-�-����0N�0N�N�O��/�/�1�F����Z����4����T�[�[����4�f�6I�6I�*�6U�V�2rc��URUR5up[R"U5n[RnURSUR5 URURUR55 gr<)
r�r/rr*�GroupCompressVersionedFilesr��_compressor_settingsr=rMrO)r(r��	old_blockr&rs     r�(test_manager_default_compressor_settings�>TestLazyGroupCompress.test_manager_default_compressor_settings�sh��#���t�{�{�;��	��8�8��C���8�8���
�
�d�G�8�8�9�����-�-�w�/O�/O�/Q�	
rc�^�URUR5up/mU4Sjn[R"X#S9nUR	SUR
5 UR
SUR55 UR
SUR55 UR
SUR
5 UR
S/T5 g)Nc�(>�TRS5 g)N�called�r�r�)rds�r�compressor_settings�ZTestLazyGroupCompress.test_manager_custom_compressor_settings.<locals>.compressor_settings�s����M�M�(�#�r��get_compressor_settingsrerd)r�r/rr*r�r^r=rO)r(r�r_rfr&rds     @r�'test_manager_custom_compressor_settings�=TestLazyGroupCompress.test_manager_custom_compressor_settings�s����#���t�{�{�;��	���	� �8�8��
��	
�
�
�d�G�8�8�9������ @� @� B�C������ @� @� B�C������ <� <�=����(��V�,rc��[[R[R5(d[R
"S5eUR
UR5up[R"USS9nUR5nURSURR5 URSXU5 URSXU5 UR5upVnURSU5 UR5 UR nUR#X(5 UR%UR&UR&:5 g)Nz:pure-python compressor does not handle compressor_settingsc�
�SS0$)NrT� r2r2rrr��QTestLazyGroupCompress.test__rebuild_handles_compressor_settings.<locals>.<lambda>�s
��8L�b�7Qrrhrnr r!�rebuild)r�rr�rr�TestNotApplicabler�r/r*r�r=r�rUr'�_check_rebuild_action�_rebuild_blockror�rTr�)	r(r�r_r&r��action�	last_byte�total_bytes�	new_blocks	         r�)test__rebuild_handles_compressor_settings�?TestLazyGroupCompress.test__rebuild_handles_compressor_settings�s����)�)�=�+M�+M�
�
��)�)�L��
� $���t�{�{�;��	��8�8��/Q�
���
+�
+�
-������R�_�_�@�@�A����
�I�'�J����
�I�'�J�)0�)F�)F�)H�&��;�����F�+���� ��N�N�	�����.�	
���	�1�1�I�4M�4M�M�Nrc��URUR5upURUR55 URUlUR
UR55 URS-UlURUR55 URUlURUR55 g)Nr)r,r/�assertFalse�check_is_well_utilizedr�rprT�_full_enough_mixed_block_sizerQs   r�$test_check_is_well_utilized_all_keys�:TestLazyGroupCompress.test_check_is_well_utilized_all_keys�s����9�9�$�+�+�F�������7�7�9�:�*/�*?�*?��'�����6�6�8�9�*/�*?�*?�!�*C��'�����7�7�9�:�16�0E�0E��-�����7�7�9�:rc�*�0nSnSnSnSnURSX'URSX'URSX'URSX'URU5upgURUR55 URUlUR
UR55 URS	-UlURUR55 URUlUR
UR55 g)
N)�f1�k1)r��k2)�f2r�)r�r�rrr r!r)r/r,r{r|r�rprTr})r(r+�f1k1�f1k2�f2k1�f2k2r�r&s        r�&test_check_is_well_utilized_mixed_keys�<TestLazyGroupCompress.test_check_is_well_utilized_mixed_keys�s��������������k�k�*�-����k�k�*�-����k�k�*�-����k�k�*�-����9�9�%�@�������7�7�9�:�*/�*?�*?��'�����6�6�8�9�*/�*?�*?�!�*C��'�����7�7�9�:�05�0E�0E��-�����6�6�8�9rc�z�URUR5up[R"U5nURUlUR
SXU5 UR
SXU5 URUR55 UR
SXU5 URUR55 g)Nrrr!)
r�r/rr*r�rpr'r{r|rT)r(r�r�r&s    r�'test_check_is_well_utilized_partial_use�=TestLazyGroupCompress.test_check_is_well_utilized_partial_use�s����?�?�4�;�;�7��	��8�8��?��*/�*?�*?��'����
�I�g�F����
�I�g�F�	
����7�7�9�:�	
���
�I�g�F�����6�6�8�9rr2N)r3r4r5r6r/r�r'r,r2r:rJr�rRrWrZr`rjrxr~r�r�r7r2rrrr�st��=�=�=�=��F�"L�1��A�0
�&"/�HA�$-�
W�
W�
�-�&O�2;�:�&:rrc� �\rSrSrSrSrSrg)�Test_GCBuildDetailsi�c��[R"SS5nURS[U55 URSUS5 URSUS5 URSUS5 URSUS5 g)	N�)�parent1)�parent2��INDEXr��r�r=rrr
)�groupNr)r�_GCBuildDetailsr=rD�r(�bds  r�test_acts_like_tuple�(Test_GCBuildDetails.test_acts_like_tuple�s����
*�
*�(�*A�
��	
����C��G�$����0�"�Q�%�8�����r�!�u�%����5�r�!�u�=�����"�Q�%�0rc�h�[R"SS5nURS[U55 g)Nr�r�zF_GCBuildDetails(('INDEX', 10, 20, 0, 5), (('parent1',), ('parent2',))))rr�r=r&r�s  r�test__repr__� Test_GCBuildDetails.test__repr__s2��
�
*�
*�(�*A�
��	
���T���H�	
rr2N)r3r4r5r6r�r�r7r2rrr�r��s��
1�
rr�)#rkr��rrrrr�tests.scenariosr	rrr
rrr��test__groupcompressrr�
load_tests�TestCaserr9rmr�r��TestCaseWithMemoryTransportrr�TestCaseWithTransportr�r�r�rr�r2rr�<module>r�s���"#��-�-�!�9�>�>�"�?��(�
�
�%�.�.�
�$P<�1�P<�fRC�2�RC�jQC� 3�QC�hJ
�U�^�^�J
�Z�e�.O�.O��,r2�&M�r2�j	(�e�9�9�(�V-�-�_K� G�_K�DM:�E�7�7�M:�`
�%�.�.�
r

Youez - 2016 - github.com/yon3zu
LinuXploit