403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/test/test_unittest/testmock/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/test_unittest/testmock/__pycache__/testhelpers.cpython-315.opt-1.pyc
R
>lqj<�c��]PHs]PHs]PHs]PHs]QHGsGsGsGsG	s	G
s
GsGsG
s
Gs]QH<GsGsGs]QHLGs]QHPGs]QHXGsQQ\2sQQ	\O42sQ
Q\O42sQQ
\O42sQQ\O42sQQ\O42s\ Q6Xc\OB2P!P!)�)
�call�_Call�create_autospec�	MagicMock�Mock�ANY�	_CallList�patch�PropertyMock�	_callable)�	dataclass�field�InitVar)�datetime��partial)�ClassVarc�8`�\sQs]snQsQsQQksQsUsP!)�	SomeClassc��P!�N���self�a�bs&&&�<C:\Python315\\Lib\test\test_unittest\testmock\testhelpers.py�one�
SomeClass.one����c��P!rr�rs&r�two�
SomeClass.twos��4r c��P!rr�rrs&&r�three�SomeClass.threes��Tr rr)	�__name__�
__module__�__qualname__�__firstlineno__rr#r'�__static_attributes__�__classdictcell__��
__classdict__s@rrrs������!�!r rc�F`�\sQs]snQsQsQsQsQsQs	Qs
UsP!)�AnyTestc���UO[[22[2oU[2UO	[2[2oU[Q5UO	[Q5P!���foo)�assertEqualr�objectr�assert_called_with�r�mocks& r�test_any�AnyTest.test_anysO������f�h�'��v���S�	�����$��v����
����C��(r c��UO[[2Q2UO[[2Q2P!)z<ANY>)r7�reprr�strr"s&r�	test_repr�AnyTest.test_repr$s*������c��G�,�����S��7�+r c��[2oU[O2[O2Q5UO[[Q5P!r4)rr�nowr9rr:s& r�test_any_and_datetime�AnyTest.test_any_and_datetime)s2���v���X�\�\�^�����0�������-r c
�L�[2oQQ[2o[O2U21FD�oUO	2UV3UQ5UOV3UQ5U2OV3Q5[
[[[Q5[O
[[[Q5[
2[
2O[[Q5,oUOVAO2UOUOU2J�	P!)c�.`�\sQs]2snQsQsQsUsP!)�9AnyTest.test_any_mock_calls_comparison_order.<locals>.Fooc��P!rr�r�others&&r�__eq__�@AnyTest.test_any_mock_calls_comparison_order.<locals>.Foo.__eq__3���Tr c��P!rrrKs&&r�__ne__�@AnyTest.test_any_mock_calls_comparison_order.<locals>.Foo.__ne__4rOr r)r)r*r+r,rMrQr-r.r/s@r�FoorI2s����)�)�)r rS�r6�bar)�zinga�alpha)�a1�z99)
rr8rrD�
reset_mock�methodrrr7�
mock_calls)rr;rS�d�expecteds&    r�$test_any_mock_calls_comparison_order�,AnyTest.test_any_mock_calls_comparison_order0s����v��	*�&�	*�������&�A��O�O����q�!��K�K��!�K�,��F�M�M�Q�M�&��S�c�s�+����C�s�#�6�����
�
��#�
�6��H�

���X���7����T�_�_�h�7�'r c���QQ2o[2oUU2]2UO[[]2,2UO	[]2UO[]2P!)c�(`�\sQs]GsnQsQsUsP!)�%AnyTest.test_any_no_spec.<locals>.Fooc��P!rrrKs&&rrM�,AnyTest.test_any_no_spec.<locals>.Foo.__eq__HrOr r�r)r*r+r,rMr-r.r/s@rrSrcG�����)�)r rS�r�assert_has_callsrrr9�assert_any_call�rrSr;s&  r�test_any_no_spec�AnyTest.test_any_no_specEsV��	*�	*��v���S�U�A�����t�C��|�n�-�����Q�'����S�!�$r c���QQ2o[UQ5oUU2]2UO[[]2,2UO	[]2UO[]2P!)c�(`�\sQs]RsnQsQsUsP!)�*AnyTest.test_any_and_spec_set.<locals>.Fooc��P!rrrKs&&rrM�1AnyTest.test_any_and_spec_set.<locals>.Foo.__eq__SrOr rrfr/s@rrSrpRrgr rS)�specrhrks&  r�test_any_and_spec_set�AnyTest.test_any_and_spec_setPsX��	*�	*���~���S�U�A�����t�C��|�n�-�����Q�'����S�!�$r r)r)r*r+r,r<rArEr_rlrtr-r.r/s@rr2r2s(����	)�,�
.�8�*	%�
%�
%r r2c�`�\sQs]\snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsQsQsQsQsQsQsQsUsP!)�CallTestc	��[2oUOU[22UOU[Q22UOU[Q22UOU[-122UOU[Q22UOU[P-122UOU[PQ-122UOU[Q	22UOU[Q
22UOU[Q-122UOU[QQ-122[Q2oUOU[Q22UOU[Q
22UOU[Q-122UOU[PQ-122[Q2oUOU[Q
22UOU[PQ-122[Q2oUOU[Q22UOU[PQ-122UOU[Q22UOU[QQ-122[Q]-12oUOU[PQQ]-122UOU[PQ]-122UOU[QQ]-122UOU[Q]-122P!)�rU�baz�spamr)ryr�r)ryrr5�rUr�����r~)ryr~�rr��)r�)r6r�)ryr�)rUr��rr7�assertNotEqual)r�kalls& r�test_call_with_call�CallTest.test_call_with_call^s����w������u�w�'�����u�U�|�,�����u�U�|�,�����u�b�U�|�,�����u�X��/�����u�b�"�X��/�����u�b�"�b�\�2�3�����u�X��/�����u�[�1�2�����u�e�R�[�1�2�����u�f�b�"�%5�6�7��\�"������u�\�2�3�����u�_�5�6�����u�i��_�5�6�����u�b�)�R�%8�9�:��\�"�����D�%��"8�9����D�%��Y��(;�"<�=��(�)�����D�%��"8�9����D�%��Y��(;�"<�=����D�%�(:�";�<����D�%��	�2�(>�"?�@��s�A�h�[�!������u�b�"�s�A�h�%7�8�9�����u�b�3��(�^�4�5�����u�b�3��(�^�4�5�����u�s�A�h�[�1�2r c�$�[2oUOUQ2UOUQ2UOUQ2UOUQ2UOUQQ-12UOUQ-12UOU-12P!)r6rr5r|�r6r)rr7�r�argss& r�test_empty__Call�CallTest.test_empty__Call�s����w������r�"�����x�(�����u�%�����{�+������b�"�~�.������r�{�+������u�%r c��[QQ-12oUOUQ2UOUQ2UOUQQ-12UOUQ-12UOUQ2UOUQ2UOU-12UOUQ2UOUQ2UOUQ-12P!)r6rUrr5r�r|�rUr}r�r�s& r�test_named_empty_call�CallTest.test_named_empty_call�s����e�R��_�%������x�(�����{�+������b�"�~�.������r�{�+����D�%�(����D�"�%����D�2�%�(����D�(�+����D�+�.����D�5�"�+�.r c�,�[Q-12oUOUQ2UOUQ2UOUQQ-12UOUQ-12UOUOQ2UOUO-2P!)rr6r~r��r6r~)rr7r��kwargsr�s& r�test_call_with_args�CallTest.test_call_with_args�s����i��_�%������|�,�����1�2������y�"�5�6�����	�2��/�������I�.�������b�)r c�.�[QQ-12oUOUQ2UOUQQ-12UOUOQ2UOUO-2UO	UQ2UO	UQ-12P!)r6r~r�r�)rr7r�r�r�r�s& r�test_named_call_with_args�"CallTest.test_named_call_with_args�s����e�Y��+�,������1�2������y�"�5�6�������I�.�������b�)����D�,�/����D�9�b�/�2r c
��[Q[]]Q512oUOU[]]Q512UOUQ[]]Q512UOUQQ[]]Q512UOUQ[]]Q512UOUOQ2UOUO[]]Q52P!)r��rrr6r)r�dictr7r�r�r�s& r�test_call_with_kwargs�CallTest.test_call_with_kwargs�s����b�$��a�.�)�*�������q�A��0�1������t�a�1�~�6�7������r�4�!�q�>�:�;������D�1��N�3�4�������B�'�������d�Q�!�n�5r c
��[QQ[]]Q512oUOUQ[]]Q512UOUQQ[]]Q512UOUOQ2UOUO[]]Q52UOU[]]Q512UOUQ[]]Q512P!)r6r�r)rr�r7r�r�r�r�s& r�test_named_call_with_kwargs�$CallTest.test_named_call_with_kwargs�s����e�R���Q��0�1�������t�a�1�~�6�7������r�4�!�q�>�:�;�������B�'�������d�Q�!�n�5����D�4�!�q�>�"3�4����D�2�t�a�1�~�"6�7r c���[Q-12oUOU[]]]22UO[]]]2U2UO[]]]2U,2P!)rr~)rr7r�assertInr�s& r�#test_call_with_args_call_empty_name�,CallTest.test_call_with_args_call_empty_name�sX���i��_�%������t�A�q�!�}�-�����a��A���-��
�
�d�1�a��m�d�V�,r c��UO[Q2[]]22UO[Q2[]]]26g2UO	[Q-12[]]]26g2P!)rr��rr�)r�rr�assertFalse�
assertTruer"s&r�test_call_ne�CallTest.test_call_ne�s_�����E�,�/��a���<�����|�,��Q��1�
�=�>�����v�r�l�+�t�A�q�!�}�<�=r c��[Q2o]PU[1FD'oUOV2UOV6H2J)	P!)rr�)r�intr�r�)rr��values&  r�test_call_non_tuples�CallTest.test_call_non_tuples�s=���\�"����d�C�'�E�����,����T�]�+�(r c
�"�UO[[22Q2UO[[Q22Q2UO[[QQQ-122Q2UO[[QQQQ-122Q2UO[[2Q2UO[	[2Q2UO[[22Q2UO[[]22Q2UO[[Q	Q
52Q2UO[[2O
2Q2UO[[]2O
O
]Q
5O2Q2UO[[2O]]]Q
52Q2UO[[222Q2UO[[]2]22Q2UO[[22O
2OO]22Q2P!)zcall()z
call.foo()rrzcall(1, 2, 3, a='b')rUzcall.bar(1, 2, 3, a='b')rzcall(1)�thing)�zzzcall(zz='thing')z
call().foo�rzcall().foo.bar().bingzcall().foo(1, 2, a=3)zcall()()z	call()(2)zcall()().bar().baz.beep(1)r5r~)
r7r?rrr@r6rU�bingrz�beepr"s&rrA�CallTest.test_repr�s�������e�g���1�����e�H�o�.��=�����e�Y��c�
�$;�<�=�/�	1�����e�U�I��S�z�$B�C�D�3�	5�	
����d��V�,�����T��F�+�����d�f��x�0�����d�1�g��	�2�����d�g�.�/�1C�D�����d�f�j�j�)�<�8�����d�1�g�k�k�o�o��o�2�7�7�8�0�	2���������A�q�A��&�'�#�	
�	
����d�f�h���4�����d�1�g�a�j�)�;�7�����������#�#�(�(��+�,�(�	
r c	�2�UO[2PQ-12UO[QQ]]Q5PQQ]Q]-12[2oU]]]2U]]Q5UOUO[]]]2[]]Q5,2P!)	ryr6rU)rr#rr#r�rrT)r7rr�call_args_listr:s& r�	test_call�CallTest.test_calls��������"�b�"��.�����e�U��q�9��n�u�a���.B�C�	E��v���Q��1�
��q�A������,�,��q�!�Q�-���Q��8�	:r c	���UO[O]2QQ-12UO[OO	QQ5QQQQ-12[2oUO]]]2UOO	]]Q5UOUO[O]]]2[OO	]]Q5,2P!)	rr6�eggs)�fishzbar.bazr�r��rr)r7rr6rUrzr�method_callsr:s& r�test_attribute_call�CallTest.test_attribute_calls���������!��u�d�B�&7�8���������6��2�#�R�&�&�)9�:�	<��v������A�q�������q�A�������*�*��(�(�1�a��+�T�X�X�\�\�A��\�-C�D�	Fr c
��[]2O]2O]]Q5oUOUQQ[	]Q512[2oU]]]]Q5UOUO[]]]]Q52UOUO[]]]22UOUO[]]]]Q5,2UOUO[]]]]Q5,2[2oUO]2O22OO]Q5[O]2O22OO]Q5oUOUOP*U2UOUOUO22P!)rr�z().foo().barr��r�)
rr6rUr7r�r�	call_argsr�r�r\rzr��	call_list)r�resultr;�	last_calls&   r�test_extended_call�CallTest.test_extended_callse���a����Q��#�#�A��#�+������.�$��q�	�!B�C��{���Q��Q�!���������a��a�1�)=�>����D�N�N�D��A�q�M�:�����,�,�t�A�q�A��/C�.D�E�������4��1��Q�+?�*@�A��{�������������$�$�q�$�)��H�H�Q�K�O�O�%�'�+�+�0�0�1�0�5�	��������,�i�8�������)�*=�*=�*?�@r c���[]Q5Oo[]Q5OoUOV2UOV"2UOV2P!�r��x)rr6r7r�rs&  r�test_extended_not_equal� CallTest.test_extended_not_equal,sF���1�I�M�M���1�I�M�M���������������A�!r c��[]Q5O2Oo[]Q5O2OoUOV2UOV"2UO	V2P!r�)rr6rUr7r�rs&  r�test_nested_calls_not_equal�$CallTest.test_nested_calls_not_equal4sV���1�I�M�M�O�����1�I�M�M�O�����������������A�!r c���[2oU]2UO[]2O2UO2[2oU]2O]2UO[]2O]2O2UO2[2oU]2O]2]2UO[]2O]2]2O2UO2[2o[
U]2O]2]2OOO]2]22[]2O]2]2OOO]2]2O2oUOUO2UO2P!r�)rr7rr�r\r[r�r6rUrz�__int__)rr;r�s&  r�test_call_list�CallTest.test_call_list<s[���{���Q������a��*�*�,�d�o�o�>��{���Q����q������a�����*�4�4�6����	*��{���Q����q��!������a�����*�1�-�7�7�9����	*��{���D��G�N�N�1��a� �$�$�(�(�,�,�Q�/��2�3��A�w�~�~�a� ��#�'�'�+�+�/�/��2�1�5�=�=�?��������)�4�?�?�;r c���UO[[2[2o[	U2UOUO
[,2UO[,UO
2P!r)r7rrrr�r\�r�ms& r�
test_call_any�CallTest.test_call_anyQsL������s�#��K���A���������u�-����#�����-r c��[QQ]-1P	Q5oUO[U2]2UOU]*Q2UOU]*Q]-2[QQ]-12oUOV2P!)rr)r#r�)rr7�len)rr��
other_argss&  r�test_two_args_call�CallTest.test_two_args_callZsx���f�s�A�h�'�T�2������T��A�&�����a��&�)�����a��3��(�+��F�S�!�H�-�.�
�����*r c���UO[QQ2]*Q2UO[Q2]*P2UO[QQQ-12]*P2P!)r6�hello�worldr�rU�barz)r�)r7rr"s&r�test_call_with_name�CallTest.test_call_with_namecs]������r�5�)�!�,�e�4�����1�3�A�6��;������'�7�1C�D�F�q�I�2�Nr c	��[2oU2O2Q*2UOUO[	2[	2O2[	2O2OQ2[	2O2O22,2[2o]U2O2Q$UOUO[	2[	2O2[	2O2O
Q]2,2[2o[U2O22UOUO[	2[	2O2[	2O2O2,2P!r�)	rr6r7r\r�__getitem__�__setitem__�iter�__iter__r�s& r�test_dunder_call�CallTest.test_dunder_callhs���K��	����	�%������
�L�L�
�V�T�V�Z�Z�\�4�6�:�:�<�#;�#;�E�#B�D�F�J�J�L�D\�D\�D^�D`�a�	
�
�K�������	�%�����
�L�L�
�V�T�V�Z�Z�\�4�6�:�:�<�#;�#;�E�1�#E�F�	
�
�K���Q�S�W�W�Y�����
�L�L�
�V�T�V�Z�Z�\�4�6�:�:�<�#8�#8�#:�;�	
r r)r)r*r+r,r�r�r�r�r�r�r�r�r�r�rAr�r�r�r�r�r�r�r�r�r�r-r.r/s@rrwrw\sw����"3�J	&�
/� *�	3�6�	8�-�>�,�
�>	:�	F�A�("�"�<�*.�+�O�

�
r rwc�0`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQsQsQsQsQsQsQsQsQsQsQsQsQsQs Qs!Q s"Q!s#Q"s$Q#s%Q$s&Q%s'Q&s(Q's)Q(s*Q)s+Q*s,Q+s-Q,s.Q-s/Q.s0Q/s1Us2P!)0�SpecSignatureTest�}c���UO[[UQ2UO]]2UOO	]]2UO[
UOO]]2UO[UO]2UO2UOO	2UO[
UOO]2UO[UO]2UO2UOO	2UO[
UOO]2UO[UO]]2UO]2UOO	]2UO]Q5UOO	]Q5P!)r6r�)	�assertRaises�AttributeError�getattrrr9�AssertionError�	TypeErrorr#r'r:s&&r�_check_someclass_mock�'SpecSignatureTest._check_someclass_mocksK�����.�'�4��?�����A�����#�#�A�q�)����.��(�(�5�5�q�!�	=����)�T�X�X�q�1����
����#�#�%����.��(�(�5�5�q�	:����)�T�X�X�q�1��
�
���
�
�%�%�'����.��*�*�7�7��	<����)�T�Z�Z��A�6��
�
�1�
��
�
�%�%�a�(��
�
�Q�
���
�
�%�%��%�*r c��[[2oUOU2[[22oUOU2P!r)rrr�r:s& r�
test_basic�SpecSignatureTest.test_basic�s4���y�)���"�"�4�(��y�{�+���"�"�4�(r c��Qo[UQQ5oUOU2Q2QQ[2o[UQQ5oUOU2Q2P!)c��P!rrrr r�f�>SpecSignatureTest.test_create_autospec_return_value.<locals>.f�s��r r6��return_valuec��\sQsQsQsP!)�@SpecSignatureTest.test_create_autospec_return_value.<locals>.Foo�r�r)r*r+r,r-rr rrSr����r rS)rr7r8)rrr;rSs&   r�!test_create_autospec_return_value�3SpecSignatureTest.test_create_autospec_return_value�sO����q�u�5��������'�	�&�	��s��7��������'r c��[[2o[U2UO2UOUOO
]2P!)r)rr�rZr7r��
call_countr�s& r�test_autospec_reset_mock�*SpecSignatureTest.test_autospec_reset_mock�s6���C� ���A��	����������-�-�q�1r c���QQ[2o[OUQ2oUO2oU2O]2UO	]2P!)c�(`�\sQsQsnQsQsUsP!)�;SpecSignatureTest.test_mocking_unbound_methods.<locals>.Foo�c��P!rr)rr6s&&rr6�?SpecSignatureTest.test_mocking_unbound_methods.<locals>.Foo.foo����r r)r)r*r+r,r6r-r.r/s@rrSr������$�$r rSr6)r8r	�startr6r9)rrS�p�mock_foos&   r�test_mocking_unbound_methods�.SpecSignatureTest.test_mocking_unbound_methods�sD��	%�&�	%��L�L��e�$���7�7�9����	�	�!���#�#�A�&r c�x�QQ[2o[UQQ5oUOUOQ2P!)c��\sQsQs]sQsP!)�ESpecSignatureTest.test_create_autospec_keyword_arguments.<locals>.Foo�r�r)r*r+r,rr-rr rrSr �����Ar rS�3r�)r8rr7r)rrSr�s&  r�&test_create_autospec_keyword_arguments�8SpecSignatureTest.test_create_autospec_keyword_arguments�s.��	�&�	��C�3�'��������c�"r c���QP-Qko[U2oU]2UO]2UO[U]]2U]]Q5UO]]Q5P!)rc��P!rrr�s&$rr6�JSpecSignatureTest.test_create_autospec_keyword_only_arguments.<locals>.foo�s��tr �r)rr9r�r�)rr6r�s&  r�+test_create_autospec_keyword_only_arguments�=SpecSignatureTest.test_create_autospec_keyword_only_arguments�sY��#��#��C� ��	�!��	���Q�����)�Q��1�-�	�!�q�	�	���Q�!��$r c��[2oQoV!m[U2oUOQ2UOOQ2P!)c��P!rrr�s&rr�@SpecSignatureTest.test_function_as_instance_attribute.<locals>.f����$r r�)rrrr9)r�objrr;s&   r�#test_function_as_instance_attribute�5SpecSignatureTest.test_function_as_instance_attribute�s8���k������s�#�����v�����!�!�&�)r c��[,2oUOQ2UOOQ2UO[[
UQ2QQ[2o[U2oUOO]2UOOO]2UO[[
UOQ2P!)r6c��\sQsQs,sQsP!)�0SpecSignatureTest.test_spec_as_list.<locals>.Foo��r)r)r*r+r,r6r-rr rrSr6�s���Cr rS)r�appendr9r�r�r�r8r6)rr;rSs&  r�test_spec_as_list�#SpecSignatureTest.test_spec_as_list�s����r�"�����E�����&�&�u�-����.�'�4��?�	�&�	��s�#��������������*�*�1�-����.�'�4�8�8�U�Cr c��QQ[2o[U2oV"O1FDoUOU2J	P!)c�&�\sQsQs\2sQsP!)�.SpecSignatureTest.test_attributes.<locals>.Sub��r�r)r*r+r,r�attrr-rr r�Subr=��	���;�Dr rA)rrr@r�)rrA�sub_mockr;s&   r�test_attributes�!SpecSignatureTest.test_attributes�s9��	�)�	�#�3�'���}�}�-�D��&�&�t�,�.r c�`�QQ[2nU1QkQ[2o[U2oUO]2UO[29^tt^2UO2PPP2UO[29^tt^2UO]]2PPP2P!)%fhKJ9h)%fhP!9h)c�(`�\sQsQsnQsQsUsP!)�VSpecSignatureTest.test_spec_has_descriptor_returning_function.<locals>.CrazyDescriptor�c��UeQ!P!)Nc��P!rrr�s&r�<lambda>�pSpecSignatureTest.test_spec_has_descriptor_returning_function.<locals>.CrazyDescriptor.__get__.<locals>.<lambda>�rOr r)rr1�type_s&&&r�__get__�^SpecSignatureTest.test_spec_has_descriptor_returning_function.<locals>.CrazyDescriptor.__get__�s���;�)�)�r r�r)r*r+r,rOr-r.r/s@r�CrazyDescriptorrH�s����
*�
*r rRc�*:�\sQsQsY2sQsP!)�NSpecSignatureTest.test_spec_has_descriptor_returning_function.<locals>.MyClass�r)r)r*r+r,�	some_attrr-)rRs�r�MyClassrT�s���'�)�Ir rW)r8rrVr�r�)rrWr;rRs&  @r�+test_spec_has_descriptor_returning_function�=SpecSignatureTest.test_spec_has_descriptor_returning_function�s����	*�f�	*�	*�f�	*��w�'�����q��
�
�
�y�
)�
)��N�N��*�
�
�
�y�
)�
)��N�N�1�a� �*�
)�*�
)��
)�
)�
)�s$�B0�C�0C	�9C	�C	�C	c�j`�U1QkQ[2nR2oUO[29^tt^2UOPPP2UO	UO]*2]*2[
U2oUO]*2UO[29^tt^2UO2PPP2UO[29^tt^2UO]]2PPP2P!)%fhK�9h)%fhK]9h)%fhP!9h)c�>:``�\sQsQsnUU1QksQsQsUsU9s!)�ISpecSignatureTest.test_spec_has_function_not_in_bases.<locals>.CrazyClass�
c�2:�[RU_2Q,*!)�crazy)�super�__dir__)r�
CrazyClass�	__class__s&��rra�QSpecSignatureTest.test_spec_has_function_not_in_bases.<locals>.CrazyClass.__dir__s����Z��6�8�'��B�Br c�.�UQ6XcQ![U2g)r_c��U!rrr�s&rrL�gSpecSignatureTest.test_spec_has_function_not_in_bases.<locals>.CrazyClass.__getattr__.<locals>.<lambda>s��Qr �r�)r�items&&r�__getattr__�USpecSignatureTest.test_spec_has_function_not_in_bases.<locals>.CrazyClass.__getattr__s���7�?�&�&�$�T�*�*r r)	r)r*r+r,rarjr-r.�
__classcell__)rcr0rbs@@�rrbr\
s����
C�
+�
+r rb)r8r�r�rLr7r_rr�)r�instr;rbs&  @r�#test_spec_has_function_not_in_bases�5SpecSignatureTest.test_spec_has_function_not_in_basess����	+��	+��|��
�
�
�~�
.�
.��J�J�/�������B���,��t�$���
�
�2��
�
�
�y�
)�
)��J�J�L�*�
�
�
�y�
)�
)��J�J�q�!��*�
)�/�
.��*�
)��
)�
)�
)�s5�
C;�(D�D!�;D	�D	�D	�D	�!D2	�*D2	c�@�QQ[2o[U2oUO]2UOO]2UO	[
[UOQ2UOQ2UOOQ2UO	[UOQQ2UO	[
[UOQ2UO]],2UOO]],2UO	[
[UOQ2UOO]2UOOO]2UO	[
[UOQ2P!)c�0`�\sQsQsnQs\s-sQsUsP!)�GSpecSignatureTest.test_builtin_functions_types.<locals>.BuiltinSubclass�(c��P!rr)r�args&&rrU�KSpecSignatureTest.test_builtin_functions_types.<locals>.BuiltinSubclass.bar)rr r)	r)r*r+r,rU�sortedr@r-r.r/s@r�BuiltinSubclassrr(s����$��F��Dr rxr6rU)�listrr8r9r�r�r�rUr�rwr@�pop�rrxr;s&  r�test_builtin_functions_types�.SpecSignatureTest.test_builtin_functions_types$s��	�d�	�
��/�����A�����&�&�q�)����.�'�4�;�;��F���������#�#�E�*����)�T�X�X�u�e�<����.�'�4�8�8�U�C����Q��F�����&�&��1�v�.����.�'�4�;�;��F��	�	�
�
�a���	�	�
�
�(�(��+����.�'�4�9�9�e�Dr c��QQ[2o[U2oUO]]2UO2UO	]2[
O]]2[
O2[
O]2,oUO
UOU2UOO]]2UOO2UOO	]2UO[
OO]]2[
OO2[
OO	]2,2UO
UOU2P!)c�&�\sQsQs\2sQsP!)�0SpecSignatureTest.test_method_calls.<locals>.Sub�Arr?rr rrAr�ArBr rA)
rrrr#r'rr7r�r@�extend)rrAr;r^s&   r�test_method_calls�#SpecSignatureTest.test_method_calls@s���	�)�	��s�#������A�����
��
�
�1�
��H�H�Q��N�D�H�H�J��
�
�1�
�>������*�*�H�5��	�	�
�
�a����	�	�
�
���	�	��������
�Y�Y�]�]�1�a�
 �$�)�)�-�-�/�4�9�9�?�?�1�3E�F�	
�	
����*�*�H�5r c��QQ[2o[U2oUO[U2,2UO[[
U2UO[[
UO2UO[U2,2UOUQ*[2UOUOQ*[2P!)c��\sQsQs-sQsP!)�=SpecSignatureTest.test_magic_methods.<locals>.BuiltinSubclass�Wr)r)r*r+r,r@r-rr rrxr�Ws���Dr rxr6)	ryrr7r�r�r�r@�assertIsInstancerr{s&  r�test_magic_methods�$SpecSignatureTest.test_magic_methodsVs���	�d�	���/������d��R�(����)�S�$�/����)�S�$�)�)�4�����d��R�(����d�5�k�9�5����d�i�i��.�	�:r c	�
�QQ[2oV21FDeo[UP	Q5oUOU2UO[[
UQQ2UO[[
UOQQ2Jg	P!)c�&�\sQsQs\2sQsP!)�,SpecSignatureTest.test_spec_set.<locals>.Sub�err?rr rrAr�erBr rA)�spec_setr6rU)rrr�r�r��setattrr@)rrArsr;s&   r�
test_spec_set�SpecSignatureTest.test_spec_setdsj��	�)�	��#�%�L�D�"�4�$�7�D��&�&�t�,����n�g�t�U�E�J����n�g�t�y�y�%��O�!r c�b�QQ[2oQQU2oQQ[U2oV2V"2V321FDjo[U2oUO]]2UOO	]]2UO]]2UO
O	]]2Jl	P!)c�B`�\sQsQsn\Q2s\Q2sQsUs	P!)�/SpecSignatureTest.test_descriptors.<locals>.Foo�qc��P!rr)�clsrrs&&&rr�1SpecSignatureTest.test_descriptors.<locals>.Foo.fr���"r c��P!rrr�s&&r�g�1SpecSignatureTest.test_descriptors.<locals>.Foo.gts��r r)
r)r*r+r,�classmethodr�staticmethodr�r-r.r/s@rrSr�qs!����
�"��"�
���r rSc��\sQsQsQsP!)�/SpecSignatureTest.test_descriptors.<locals>.Bar�wrr	rr r�Barr�ws��r r�c��\sQsQsQsP!)�/SpecSignatureTest.test_descriptors.<locals>.Baz�yrr	rr r�Bazr�ys��4r r�)r8rrr�assert_called_once_withr�)rrSr�r�rsr;s&     r�test_descriptors�"SpecSignatureTest.test_descriptorsps���	�&�	�	�#��'�)�S�'��#�%��c�e�S�#�%�8�D�"�4�(�D��F�F�1�a�L��F�F�*�*�1�a�0��F�F�1�a�L��F�F�*�*�1�a�0�
9r c���QQ[2oVm[U2oU2UOUOO2UO2UOO2UO
UO[O
2[OO2,2UOUOUO2UOUOUO2UOO2UO[UOOO 2P!)c�0`�\sQsQsnQsQs\sQsUsP!)�+SpecSignatureTest.test_recursive.<locals>.A�c��P!rrr"s&rr�-SpecSignatureTest.test_recursive.<locals>.A.a�rr zfoo bar bazr)	r)r*r+r,rr6rUr-r.r/s@r�Ar��s������C��Cr r�)r8�Brr��calledrr7r�r�assertIsr6rU�assertIsNot�lowerr�r�r9)rr�r;s&  r�test_recursive� SpecSignatureTest.test_recursive�s���	��	�
���q�!������������'����������
�����*�*�T�V�V�X�t�v�v�x�x�z�,B�C��
�
�a�e�e�Q�U�U�#�������4�8�8�,����������.�$�(�(�.�.�*K�*K�Lr c�>�QQ[2o[U2oUOV"22V"21FD�oUO]Q5UOO	]Q5UOO	]2UO[UOQQ2UO[[UQ2J�	[U22oUO]2UOO	]2UOO	]Q5UO[UOQQ2UO[[UQ2UO[U2UOO]2UOOO	]2UOOO	]Q5UO[[UOQ2UO2O]2UO2OO	]2UO2OO	]Q5UO[[UO2Q2P!)c�>`�\sQsQsnQsQQ\2sQsUsP!)�@SpecSignatureTest.test_spec_inheritance_for_classes.<locals>.Foo�c��P!rr)rr�s&&rr�BSpecSignatureTest.test_spec_inheritance_for_classes.<locals>.Foo.a����Dr c�(`�\sQsQsnQsQsUsP!)�DSpecSignatureTest.test_spec_inheritance_for_classes.<locals>.Foo.Bar�c��P!rr)r�ys&&rr�FSpecSignatureTest.test_spec_inheritance_for_classes.<locals>.Foo.Bar.f�rr r�r)r*r+r,rr-r.r/s@rr�r��s����$�$r r�r)	r)r*r+r,rr8r�r-r.r/s@rrSr��s���� �
%�f�
%�
%r rSr�r6rUr)r�r�)r8rr�rr9r�r�r�r�r�r)rrS�
class_mock�	this_mock�
instance_mocks&    r�!test_spec_inheritance_for_classes�3SpecSignatureTest.test_spec_inheritance_for_classes�s���	%�&�	%�
%�S�)�
�����Z�\�2�#�Z�\�1�I��K�K�!�K���K�K�*�*�Q�*�/��K�K�*�*�1�-����i����e�U�C����n�g�y�#�F�2�(���.�
���������*�*�1�-����*�*�Q�*�/����)�]�_�_�e�U�C����.�'�=�#�F�	
���)�]�3������A�������.�.�q�1������.�.��.�3����.�'�=�3D�3D�c�J�������a� �������0�0��3�������0�0�1�0�5����.�'�=�3D�3D�3F��Lr c���QQ[2oVm[U2oU2oUO[[
UQ2UO2oUO[[
UQ2[U22oUO[[
UQ2UO[U2UO2oUO[[
UQ2P!)c��\sQsQs]sQsP!)�+SpecSignatureTest.test_inherit.<locals>.Foo�rr"rr rrSr��r#r rSr)r8rSrr�r�r�r�)rrSr;�instance�
attr_instance�call_results&     r�test_inherit�SpecSignatureTest.test_inherit�s���	�&�	����s�#���6�����.�'�8�S�A����
�
����.�'�=�#�F��s�u�%�����.�'�4��=����)�T�*��h�h�j�����.�'�;��Dr c��[]2[[2[Q2[[2[-2[[2[,2[[2[[22[[
2[Q2[[2[Q2[[2[P
2[P	2P!)rr6g�?y�?)rr�r@r�ry�set�float�complexr"s&r�
test_builtins�SpecSignatureTest.test_builtins�s��������������������������������������������� ������r c���Qo[U2oUO[U2U]]2UO]]2UO]]Q5UO]]Q5Vm[U2oUO[UO2UO	]]2UOO]]2UOO]]Q5P!)c��P!rrr�s&&rr�*SpecSignatureTest.test_function.<locals>.f�s��Tr r*r�)rr�r�r9r�rrr;s&  r�
test_function�SpecSignatureTest.test_function�s�����q�!�����)�T�*��Q��
�����1�%�����Q��'����!�q��)����q�!�����)�T�V�V�,����q�!�����!�!�!�Q�'����!�!�A��!�+r c��``�QQ[2nU1QkQ[2oUOUO]]2]2[U2nUO	[
U1Qk2UORO]]2ROO2UO	[U1Qk2ROoUOUO1P!)c�,`�\sQsQsnQQksQsUsP!)�;SpecSignatureTest.test_skip_attributeerrors.<locals>.Raiser�c�&�Ue[Q2gP!)Nz$Can only be accessed via an instancerh)rr1�types&&&rrO�CSpecSignatureTest.test_skip_attributeerrors.<locals>.Raiser.__get__s���;�(�)O�P�P�r rrrQr/s@r�Raiserr�s����
Q�
Qr r�c�D:`�\sQsQsnY2s\Q2sQsUsP!)�@SpecSignatureTest.test_skip_attributeerrors.<locals>.RaiserClass�c��V*!rrr�s&&r�existing�ISpecSignatureTest.test_skip_attributeerrors.<locals>.RaiserClass.existings	���u�r r)	r)r*r+r,�raiserr�r�r-r.)r0r�s@�r�RaiserClassr�s�����X�F�
�
��
r r�c�,:�RO]]]2!r�)r�)r��ss&�rrL�=SpecSignatureTest.test_skip_attributeerrors.<locals>.<lambda>s���q�z�z�!�Q��/Br c�:�RO!r)�nonexisting)r�s�rrLr�s	���!�-�-r )r8r7r�rr�r�rr�r�r6rU)rr�r1r�r�s&  @@r�test_skip_attributeerrors�+SpecSignatureTest.test_skip_attributeerrors�s����	Q�V�	Q�
	�&�	�	
����-�-�a��3�Q�7��K�(�����)�%B�C�������A�q�)�1�:�:�+B�+B�C����.�*?�@��h�h��������r c��QQ[2o[U2oUO[U2U]2UO	]2UO	]Q5UO[
UO]2U]]2UO
]]2UO
]]Q5UO[
UO]]Q5P!)c�,`�\sQsQsnQQksQsUsP!)�3SpecSignatureTest.test_signature_class.<locals>.Foo�c��P!rrrs&&&r�__init__�<SpecSignatureTest.test_signature_class.<locals>.Foo.__init__s��r rr��r)r*r+r,r�r-r.r/s@rrSr�s����,�,r rSr�r�)r8rr�r�r�r�r9rks&  r�test_signature_class�&SpecSignatureTest.test_signature_classs���	-�&�	-��s�#�����)�T�*��Q���$�$�Q�'��$�$�q�$�)����.�$�*F�*F��J��Q��
�����1�%����!�q��)����.�$�*A�*A�Q�!��Lr c�<�QQ[2o[U2P!)c��\sQsQsQsP!)�6SpecSignatureTest.test_class_with_no_init.<locals>.Foo�,rr	rr rrSr,r
r rS)r8r)rrSs& r�test_class_with_no_init�)SpecSignatureTest.test_class_with_no_init)s��	�&�	���r c�j�QQ[2o[U2oU]]2UO]]2UO]]Q5UO[UQ2U]]2oUO[U2UQQ5UOQ2UOQQ5UQ2UOQ2UOQQ5[U]]22oUQQ5UOQQ5UO[U2UQ2UOQ2P!)c�.`�\sQsQsnQsQsQsUsP!)�;SpecSignatureTest.test_signature_callable.<locals>.Callable�2c��P!rr)rr�r�s&&&rr��DSpecSignatureTest.test_signature_callable.<locals>.Callable.__init__3s��dr c��P!rrr&s&&r�__call__�DSpecSignatureTest.test_signature_callable.<locals>.Callable.__call__4s��4r r)r)r*r+r,r�rr-r.r/s@r�Callabler2s����*�'�'r r�r�r�rr�)r8rr�r�r�r9)rrr;r�s&   r�test_signature_callable�)SpecSignatureTest.test_signature_callable1s��	(�v�	(��x�(���Q��
��$�$�Q��*��$�$�q�A�$�.����)�T�3�/���1�:�����)�X�.��3���(�(��-��(�(�3�(�/���
��#�#�C�(��#�#�c�#�*��x��1�~�.���s���$�$�s�$�+����)�T�*��S�	�����$r c�l�QQ[2o[U2oU2oUO2UO[UQ2UO[U2UO[UQ2[U22oUO[U2UO[UQ2P!)c�(`�\sQsQsnQsQsUsP!)�ASpecSignatureTest.test_signature_noncallable.<locals>.NonCallable�Nc��P!rrr"s&rr��JSpecSignatureTest.test_signature_noncallable.<locals>.NonCallable.__init__Os��r rrr/s@r�NonCallablerNs����
�
r rr)r8rr�r�r�)rrr;r�s&   r�test_signature_noncallable�,SpecSignatureTest.test_signature_noncallableMs���	�&�	��{�+���6���$�$�&����)�T�3�/����)�X�.����)�X�s�3��{�}�-�����)�T�*����)�T�3�/r c���QQ[2o[U2oUOoUOU[	P22UO2UO
O
2P!)c��\sQsQsPsQsP!)�8SpecSignatureTest.test_create_autospec_none.<locals>.Foo�_r)r)r*r+r,rUr-rr rrSr!_s���Cr rS)r8rrU�assertNotIsInstancer�r6r�)rrSr;�nones&   r�test_create_autospec_none�+SpecSignatureTest.test_create_autospec_none^sP��	�&�	��s�#���x�x��� � ��t�D�z�2����
����(�(�*r c�^�QQ[2o[U2oUO]
2UOO]
2UOO]
Q5UO]
Q5UOO]
2UOO]
Q5P!)c�(`�\sQsQsnQsQsUsP!)�MSpecSignatureTest.test_autospec_functions_with_self_in_odd_place.<locals>.Foo�kc��P!rr)rrs&&rr�OSpecSignatureTest.test_autospec_functions_with_self_in_odd_place.<locals>.Foo.flr�r rr�r/s@rrSr)ks���� � r rSr")r8rrr9)rrSrs&  r�.test_autospec_functions_with_self_in_odd_place�@SpecSignatureTest.test_autospec_functions_with_self_in_odd_placejs���	!�&�	!�
�C� ��	���B��	�����r�"�	�����B��'�	������	�����r�"�	�����B��'r c�"```�QQ[2nQQ[2nUU1QkQ[2o[U2oU1QkoUUO2UUO2UUO
2UUO2P!)c�8`�\sQsQsnQsQQksQsQsUsP!)�CSpecSignatureTest.test_autospec_data_descriptor.<locals>.Descriptor�xc��VmP!r�r�)rr�s&&rr��LSpecSignatureTest.test_autospec_data_descriptor.<locals>.Descriptor.__init__ys��"�
r c��U!rr)rr1r�s&&&rrO�KSpecSignatureTest.test_autospec_data_descriptor.<locals>.Descriptor.__get__|s���r c��P!rr)rr1r�s&&&r�__set__�KSpecSignatureTest.test_autospec_data_descriptor.<locals>.Descriptor.__set__s��4r r4r)	r)r*r+r,r�rOr9r-r.r/s@r�
Descriptorr1xs����
#�
�
0�/r r;c��\sQsQsQsP!)�CSpecSignatureTest.test_autospec_data_descriptor.<locals>.MyProperty�rr	rr r�
MyPropertyr=�r
r r?c�^:`�\sQsQsnQ,s\Q2sYQ2sY]*2sQs	Us
P!)�<SpecSignatureTest.test_autospec_data_descriptor.<locals>.Foo��slotc��P!rrr"s&r�prop�ASpecSignatureTest.test_autospec_data_descriptor.<locals>.Foo.prop�s�� r c��P!rrr"s&r�subprop�DSpecSignatureTest.test_autospec_data_descriptor.<locals>.Foo.subprop�s��#r r)r)r*r+r,�	__slots__�propertyrErH�descr-r.)r0r;r?s@��rrSrA�s1������I�
� �� �
�#��#��b�>�Dr rSc��:�ROU[2U]]]2UO]]]2UO]]]2UOO]]]2P!r�)r�r�abcr�)�	mock_attrrs&�r�check_data_descriptor�NSpecSignatureTest.test_autospec_data_descriptor.<locals>.check_data_descriptor�sW����!�!�)�Y�7��a��A���M�M�!�Q��"��-�-�a��A�6��M�M�1�1�!�Q��:r )r8rKrrErHrCrL)rrSr6rPr;r?sf   @@r�test_autospec_data_descriptor�/SpecSignatureTest.test_autospec_data_descriptorwso���	0��	0�	��	�		"�		"�&�		"��c�"��	;�	�c�h�h�'��c�k�k�*��c�h�h�'��c�h�h�'r c�L�[O[O[O22oUO	U2[
2[
U2oU2UO2UO2U]]]2UO]]]2P!)r�)	�types�
MethodType�time�ctimer�r@rr�rZ)r�meth�mockeds&  r�'test_autospec_on_bound_builtin_function�9SpecSignatureTest.test_autospec_on_bound_builtin_function�sv������
�
�D�I�I�K�8�����d�f�c�*� ��&��	���&�&�(������q�!�Q���&�&�q�!�Q�/r c�d�QQ2oU2o[U2oUOUQ2P!)c�(`�\sQsQsnQsQsUsP!)�ESpecSignatureTest.test_autospec_getattr_partial_function.<locals>.Foo�c��[QU2!)c��U!rr)�names&rrL�cSpecSignatureTest.test_autospec_getattr_partial_function.<locals>.Foo.__getattr__.<locals>.<lambda>�s��Dr r)r�	attributes&&rrj�QSpecSignatureTest.test_autospec_getattr_partial_function.<locals>.Foo.__getattr__�s���0�)�<�<r r)r)r*r+r,rjr-r.r/s@rrSr_�s����
=�
=r rSr))r�assertNotHasAttr)rrS�proxy�autospecs&   r�&test_autospec_getattr_partial_function�8SpecSignatureTest.test_autospec_getattr_partial_function�s/��	=�	=�
���"�5�)�����h�
�3r c���QQ2o[UOQ*2oUO[OUO
2[OU22P!)c�6`�\sQsQsn\QQk2sQsUsP!)�CSpecSignatureTest.test_autospec_signature_staticmethod.<locals>.Foo�c��P!rr�rr�cs&&$r�
static_method�QSpecSignatureTest.test_autospec_signature_staticmethod.<locals>.Foo.static_method�s��.2r r��
)r)r*r+r,r�rsr-r.r/s@rrSrn�s����
�2��2r rSrs)r�__dict__r7�inspect�	signaturersrks&  r�$test_autospec_signature_staticmethod�6SpecSignatureTest.test_autospec_signature_staticmethod�sN��	3�	3��s�|�|�O�<�=������*�*�3�+<�+<�=�w�?P�?P�QU�?V�Wr c���QQ2o[UOQ*2oUO[OUO
2[OU22P!)c�6`�\sQsQsn\QQk2sQsUsP!)�BSpecSignatureTest.test_autospec_signature_classmethod.<locals>.Foo��c��P!rr)r�rrrrs&&&$r�class_method�OSpecSignatureTest.test_autospec_signature_classmethod.<locals>.Foo.class_method�s��26r rru)r)r*r+r,r�r�r-r.r/s@rrSr~�s����
�6��6r rSr�)rrwr7rxryr�rks&  r�#test_autospec_signature_classmethod�5SpecSignatureTest.test_autospec_signature_classmethod�sN��	7�	7��s�|�|�N�;�<������*�*�3�+;�+;�<�g�>O�>O�PT�>U�Vr c	�R�Qo[U2oU]]2U]]Q5UO[OU2[OU22UOUO[]]2[]]Q5,2UO
[U]2P!)c��P!rrrs&&r�myfunc�=SpecSignatureTest.test_spec_inspect_signature.<locals>.myfunc�s��$r r)rr7rxryr\rr�r�)rr�r;s&  r�test_spec_inspect_signature�-SpecSignatureTest.test_spec_inspect_signature�s~����v�&���Q��
��q�A������*�*�4�0�'�2C�2C�F�2K�L�������4��1�:�t�a�1�~�*F�G����)�T�1�-r c	���QQQkkoUOU]]]Q5]2[U2oU]]]Q5U]]Q5UO[OU2[OU22UOUO[]]]Q5[]]Q5,2UO
[U]2UO
[U]]]]Q5P!)rvc�J�U]6�cPgQ[Q[Q[Q[-!)r�rrrr�return�r�)�formats"r�__annotate__�SSpecSignatureTest.test_spec_inspect_signature_annotations.<locals>.foo.__annotate__�s(��	�	�3�	�3�	��	��	r c�"�V*U*!rrrqs&&$rr6�FSpecSignatureTest.test_spec_inspect_signature_annotations.<locals>.foo�s���5�1�9�r )rrru)r7rrxryr\rr�r�)rr6r;s&  r�'test_spec_inspect_signature_annotations�9SpecSignatureTest.test_spec_inspect_signature_annotations�s���	�	
����Q��a��!�,��s�#���Q��Q���Q�!������*�*�4�0�'�2C�2C�C�2H�I�������4��1��?�D��a�L�*I�J����)�T�1�-����)�T�1�a��a��8r c�\�Qo[U2oUOUOQ2P!)c��Q!)�noperrr rrL�>SpecSignatureTest.test_spec_function_no_name.<locals>.<lambda>�s��vr �funcopy)rr7r))r�funcr;s&  r�test_spec_function_no_name�,SpecSignatureTest.test_spec_function_no_name�s%�����t�$��������	�2r c��Qo[U2oU]2UO[]2,2UO[29^tt^2UO[]2,2PPP2P!)%fhP!9h)c��P!rrr�s&rr�@SpecSignatureTest.test_spec_function_assert_has_calls.<locals>.f�r0r )rrirr�r�r�s&  r�#test_spec_function_assert_has_calls�5SpecSignatureTest.test_spec_function_assert_has_calls�s^����q�!���Q�����t�A�w�i�(�
�
�
�~�
.�
.��!�!�4��7�)�,�/�
.�
.�
.�s�A6�6B	�?B	c���Qo[U2oU]2UO]2UO[29^tt^2UO]2PPP2P!)%fhP!9h)c��P!rrr�s&rr�?SpecSignatureTest.test_spec_function_assert_any_call.<locals>.f�r0r )rrjr�r�r�s&  r�"test_spec_function_assert_any_call�4SpecSignatureTest.test_spec_function_assert_any_call�sR����q�!���Q�����Q��
�
�
�~�
.�
.�� � ��#�/�
.�
.�
.�s�A"�"A3	�+A3	c�~�Qo[2o[VQ5oU]2]2UOUO[	]2,2UOUO[	]2,2UO2UOUO,2UOUO,2P!)c��P!rrr�s&rr�:SpecSignatureTest.test_spec_function_reset_mock.<locals>.fr0r r)rrr7r\rrZ)rr�rvr;s&   r�test_spec_function_reset_mock�/SpecSignatureTest.test_spec_function_reset_mocks����
�V���q�2���Q���
�������4��7�)�4��������a��	�2�����������"�-��������+r c	��[QQ22o[UP	Q5[U221FDwoUOUQ59^tt^2UOV!2UOUO[
2UOUO[
2PPP2Jy	[U2oQoUO[U29^tt^2UOPPP2UO[U29^tt^2UOPPP2P!)%fhCJ9h)%fhKZ9h)%fhP!9h)c�X`�\sQsQsn\P
Q5s\P
Q5sQsU1QksQs	Us
P!)�@SpecSignatureTest.test_dataclass_post_init.<locals>.WithPostIniti)�initc�$�]Um]UmP!r�r�r"s&r�
__post_init__�NSpecSignatureTest.test_dataclass_post_init.<locals>.WithPostInit.__post_init__s�������r c�4:�U]6�cPg-RZ9Q$RZ9Q$!�r�rrr�)r�r0s"�rr��MSpecSignatureTest.test_dataclass_post_init.<locals>.WithPostInit.__annotate__s�����&���&�r r�)r)r*r+r,r
rrr��__annotate_func__r-r.r/s@r�WithPostInitr�s%������&�A���&�A�
�	�r r��r��r;�Mock object has no attribute)	rr�subTestr�rr�r�assertRaisesRegexr�)rr�r;�msgs&   r�test_dataclass_post_init�*SpecSignatureTest.test_dataclass_post_inits���	�	�	�
�	�
�L�4�8��L�N�+�
�D����4��(�(��%�%�d�9��%�%�d�f�f�c�2��%�%�d�f�f�c�2�)�(�	
��|�,��,��
�
#�
#�N�C�
8�
8��F�F�9�
�
#�
#�N�C�
8�
8��F�F�9�
8�)�(�(��9�
8��
8�
8�
8�s7�AD#	�
D8�
E�#D5
�,D5
�8E	�E	�E	�E	c	��[QQ22o[UP	Q5[U]221FDwoUOUQ59^tt^2UOV!2UOUO[
2UOUO[
2PPP2Jy	P!)%fhJ�9h)c�2`�\sQsQsn]sU1QksQsUsP!)�=SpecSignatureTest.test_dataclass_default.<locals>.WithDefaulti*c�4:�U]6�cPg-RZ9Q$RZ9Q$!r�r�)r�r0s"�rr��JSpecSignatureTest.test_dataclass_default.<locals>.WithDefault.__annotate__*s�����F���J�r r�r)r*r+r,rr�r-r.r/s@r�WithDefaultr�*s�����A��r r�r�r�)rrr�r�rr�r)rr�r;s&  r�test_dataclass_default�(SpecSignatureTest.test_dataclass_default)s���	�	�	�
�	�

�K�$�7��K��N�+�
�D����4��(�(��%�%�d�8��%�%�d�f�f�c�2��%�%�d�f�f�c�2�)�(�	
�)�(�(�s�AB1	�1C
�:C
c	�~�[QQ22o[UP	Q5[U]221FDqoUOUQ59^tt^2UOV!2UOUO[
2UOO2PPP2Js	P!)%fhJ�9h)c�@`�\sQsQsnU1QkQksU1QksQsUsP!)�@SpecSignatureTest.test_dataclass_with_method.<locals>.WithMethodi9c�":�U]6�cPgQRZ-!)r�r�r�)r�r0s"�rr��OSpecSignatureTest.test_dataclass_with_method.<locals>.WithMethod.b.__annotate__<s���
�
�3�
r c��]!r�rr"s&rr�BSpecSignatureTest.test_dataclass_with_method.<locals>.WithMethod.b<s��r c�(:�U]6�cPg-RZ9Q$!)r�rr�)r�r0s"�rr��MSpecSignatureTest.test_dataclass_with_method.<locals>.WithMethod.__annotate__9s�����F�r rr�r/s@r�
WithMethodr�9s����
�
��r r�r�r�)rrr�r�rr�r�assert_not_called)rr�r;s&  r�test_dataclass_with_method�,SpecSignatureTest.test_dataclass_with_method8s���	�	�	�
�	�
�J��6��J�q�M�*�
�D����4��(�(��%�%�d�7��%�%�d�f�f�c�2����(�(�*�)�(�	
�)�(�(�s�AB+	�+B<
�4B<
c�&�[QQ22oQo[UP	Q5[U]221FD�oUOUQ59^tt^2UOV12UO	[
U29^tt^2UOPPP2UO	[
U29^tt^2UOPPP2PPP2J�	P!)%fhKQ9h)%fhK19h)%fhJ�9h)c�.`�\sQsQsnU1QksQsUsP!)�GSpecSignatureTest.test_dataclass_with_non_fields.<locals>.WithNonFieldsiIc�T:�U]6�cPg-RZRZ*9Q$RZRZ*9Q$!r�)rr�r)r�r0s"�rr��TSpecSignatureTest.test_dataclass_with_non_fields.<locals>.WithNonFields.__annotate__Is$������}����s�|�O�r r�r)r*r+r,r�r-r.r/s@r�
WithNonFieldsr�I�����r r�r�r�r�)rrr�r�r�r�rr)rr�r�r;s&   r�test_dataclass_with_non_fields�0SpecSignatureTest.test_dataclass_with_non_fieldsHs���	�	�	�
�	�-���M�D�9��M�!�,�-�
�D����4��(�(��%�%�d�:��+�+�N�C�@�@��F�F�A��+�+�N�C�@�@��F�F�A�	)�(�	
�A�@��@�@��	)�(�(�sN�0C?	�
C
�&C?	�6
C,
�C?	�C)�"C)�$C?	�,C<�5C<�7C?	�?D
�D
c	�B�[QQ22o[UP	Q5[U]221FD�oUOUQ59^tt^2UOV!2UO	UO
U2UOUO[2UOUO[2UOUO[2UOUO[2PPP2J�	P!)%fhJ�9h)c�.`�\sQsQsnU1QksQsUsP!)�CSpecSignatureTest.test_dataclass_special_attrs.<locals>.Descriptioni[c�(:�U]6�cPg-RZ9Q$!)r�rc)r@)r�r0s"�rr��PSpecSignatureTest.test_dataclass_special_attrs.<locals>.Description.__annotate__[s�����I�r rr�r/s@r�Descriptionr�[r�r r�r�r�)rrr�r�r�rc�__dataclass_fields__r�__dataclass_params__�__match_args__�__hash__)rr�r;s&  r�test_dataclass_special_attrs�.SpecSignatureTest.test_dataclass_special_attrsZs���	�	�	�
�	�
�K�$�7��K��N�+�
�D����4��(�(��%�%�d�8��
�
�d�n�n�k�:��%�%�d�&?�&?��K��%�%�d�&?�&?��K��%�%�d�&9�&9�9�E��%�%�d�m�m�Y�?�
)�(�	
�)�(�(�s�B.D
	�
D
�D
r)3r)r*r+r,r�r�rrrr%r+r2r9rDrXrnr|r�r�r�r�r�r�r�r�r�r�rrrrr%r-rRr[rjrzr�r�r�r�r�r�r�r�r�r�r�r�r-r.r/s@rr�r�}s�����+�6)�	(�2�'�#�	%�*�D�$-�!�(�2E�86�,;�	P�1�(M�,#M�LE�0�*,�$�0M�$�%�80�"	+�
(�)(�X
0�
4�X�W�
.�
9� 3�-�$�	,��4
3�+� �$@�@r r�c�L`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sUsP!)
�TestCallListikc�^�[2oUOUO[2U]]2U]Q5U]]2U]Q5[	]]2[	]Q5[	]]2[	]Q51FDoUOV!O2J 	[	]Q5[	]]2,oUOV1O2[	]]2[	]Q5,oUOV1O2[	]]2[	]Q5,oUOV1O2[	]]2,oUOV1O2UO
[	Q2UO2UO
[	Q2,UO2P!)rr�r*r�)rr�r�rrr��assertNotIn)rr;r��callss&   r�!test_args_list_contains_call_list�.TestCallList.test_args_list_contains_call_listmsB���v�����d�1�1�9�=��Q��
��q�	��Q��
��q�	���A�J��q�	�4��1�:�t�a�y�@�D��M�M�$� 3� 3�4�A����D��A�J�'���
�
�e�0�0�1��a���T�A�Y�'���
�
�e�0�0�1��a���T�A�Y�'���
�
�e�0�0�1��a������
�
�e�0�0�1�����f��t�':�':�;����$�v�,���)<�)<�=r c��[2oU]]2UO]Q5UOO2OQQQ5QoUO	[UO2U2P!)rr�r��dog)�catzU[call(1, 2),
 call.foo(a=3),
 call.foo.bar(),
 call.foo.bar().baz('fish', cat='dog')])rr6rUrzr7r@r\)rr;r^s&  r�test_call_list_str�TestCallList.test_call_list_str�sa���v���Q��
����1��
���������6�u��-�
6�	�	
����T�_�_�-�x�8r c��[Q[*[Q5oUO2o[O
UO
2[	2oUO
UO2UOUO[2[2,2]UmUOUO[2[2[]2,2UO2P!SO2h9h)z%s.SomeClass.one)�new_callable)r	r)r
rrrr�r9r7r\r�stop)rrr;r�s&   r�test_propertymock�TestCallList.test_propertymock�s����$�x�/�l�K���w�w�y��	��M�M��(�(�*���A�
�E�E��#�#�%����T�_�_�t�v�t�v�.>�?��A�E����T�_�_�t�v�t�v�t�A�w�.G�H�
�F�F�H��A�F�F�H�s�B3C4�4Dc���[2o[2oU[U2mUOoUO	2UOU[2UO
U[2P!r)rr
r�r6r�r�r#�rr�r�returneds&   r�test_propertymock_bare�#TestCallList.test_propertymock_bare�sP���K���N����Q����5�5��	�!�!�#����h�	�2�� � ��<�8r c���[2o[]*Q5oU[U2mUOoUO	2UOU]*2UO
U[2P!)�*r)rr
r�r6r�r7r#rs&   r�test_propertymock_returnvalue�*TestCallList.test_propertymock_returnvalue�sS���K���b�)����Q����5�5��	�!�!�#�����2�&�� � ��<�8r c��[2o[[Q5oU[U2mUO[29^tt^2UOPPP2UO
2P!)%fhK"9h))�side_effect)rr
�
ValueErrorr�r6r�r��rr�rs&  r�test_propertymock_side_effect�*TestCallList.test_propertymock_side_effect�sP���K���Z�0����Q���
�
�
�z�
*�
*�
�E�E�+�	�!�!�#�+�
*�s�	
A0�0B	�9B	c��[2o[2oU[U2mUO	UQ2UOUO,2P!r5)rr
r�r6�attach_mockr7r\rs&  r�test_propertymock_attach�%TestCallList.test_propertymock_attach�s=���F���N����Q���	�
�
�a���������r�*r r)
r)r*r+r,r�r�r�rrrrr-r.r/s@rr�r�ks-����>�29��$9�9�$�+�+r r�c�F`�\sQsQsnQsQsQsQsQsQs	Qs
UsP!)	�TestCallablePredicatei�c��[[[[[[
1FDoUO
[U22J	P!r)r@�bytesr�ry�tuplerr�r)rr1s& r�	test_type�TestCallablePredicate.test_type�s)�����T�5�)�<�C��O�O�I�c�N�+�=r c�^�QQ2oU2oUO[U22P!)c�(`�\sQsQsnQsQsUsP!)�>TestCallablePredicate.test_call_magic_method.<locals>.Callablei�c��P!rrr"s&rr�GTestCallablePredicate.test_call_magic_method.<locals>.Callable.__call__�rr r)r)r*r+r,rr-r.r/s@rrr�rr r)r�r)rrr�s&  r�test_call_magic_method�,TestCallablePredicate.test_call_magic_method�s$��	%�	%��:�����	�(�+�,r c�d�QQ2oUO[UO22P!)c�2`�\sQsQsn\Q2sQsUsP!)�ATestCallablePredicate.test_staticmethod.<locals>.WithStaticMethodi�c��P!rrrr r�
staticfunc�LTestCallablePredicate.test_staticmethod.<locals>.WithStaticMethod.staticfunc�r�r r)r)r*r+r,r�r$r-r.r/s@r�WithStaticMethodr"�s����
�"��"r r&)r�rr$)rr&s& r�test_staticmethod�'TestCallablePredicate.test_staticmethod�s&��	#�	#�	
���	�"2�"=�"=�>�?r c�d�QQ2oUO[UO22P!)c�(�\sQsQs\P2sQsP!)�MTestCallablePredicate.test_non_callable_staticmethod.<locals>.BadStaticMethodi�r)r)r*r+r,r��not_callabler-rr r�BadStaticMethodr+�s��'��-�Lr r-�r�rr,)rr-s& r�test_non_callable_staticmethod�4TestCallablePredicate.test_non_callable_staticmethod�s%��	.�	.�����?�#?�#?�@�Ar c�d�QQ2oUO[UO22P!)c�2`�\sQsQsn\Q2sQsUsP!)�?TestCallablePredicate.test_classmethod.<locals>.WithClassMethodi�c��P!rr)r�s&r�	classfunc�ITestCallablePredicate.test_classmethod.<locals>.WithClassMethod.classfunc�s�� $r r)r)r*r+r,r�r5r-r.r/s@r�WithClassMethodr3�s����
�$��$r r7)r�rr5)rr7s& r�test_classmethod�&TestCallablePredicate.test_classmethod�s%��	%�	%�	
���	�/�";�";�<�=r c�d�QQ2oUO[UO22P!)c�(�\sQsQs\P2sQsP!)�KTestCallablePredicate.test_non_callable_classmethod.<locals>.BadClassMethodi�r)r)r*r+r,r�r,r-rr r�BadClassMethodr<�s��&�t�,�Lr r=r.)rr=s& r�test_non_callable_classmethod�3TestCallablePredicate.test_non_callable_classmethod�s%��	-�	-�����>�#>�#>�?�@r r)r)r*r+r,rrr'r/r8r>r-r.r/s@rrr�s,����,�-�@�B�
>�A�Ar r�__main__)"rxrWrU�unittest�
unittest.mockrrrrrrrr	r
r�dataclassesrr
rr�	functoolsr�typingrr8r�TestCaser2rwr�r�rr)�mainrr r�<module>rHs����������
2�1����"��"�C%�h���C%�J^
�x� � �^
�B	l@��)�)�l@�\a+�8�$�$�a+�H A�H�-�-� A�F�z���M�M�O�r 

Youez - 2016 - github.com/yon3zu
LinuXploit