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__/testmock.cpython-315.pyc
R
>lqj�Mc�J�]PHs]PHs]PHs]PHs]QHGs]PHs]QHGs]QHG	s	]QH(GsGsG
s
GsGsGsGsGsGsGsGsGsGsQQ\2sQQ\2sQ	Q
\2sQQ2sQ
sQQ\O<2s\ Q6Xc\OB2P!P!)�)�	ALWAYS_EQ)�is_instance��mock)
�call�DEFAULT�patch�sentinel�	MagicMock�Mock�NonCallableMock�NonCallableMagicMock�	AsyncMock�_Call�	_CallList�create_autospec�InvalidSpecErrorc�8`�\sQs]snQsQsQs\sQsUs	P!)�Iterc�,�[,QN2UmP!)�this�r�is�an�iter)r�thing��selfs&�9C:\Python315\\Lib\test\test_unittest\testmock\testmock.py�__init__�
Iter.__init__s���6�7��
�c��U!�N�rs&r�__iter__�
Iter.__iter__s���r!c�.�[UO2!r#)�nextrrs&rr(�	Iter.nexts���D�J�J��r!)r)
�__name__�
__module__�__qualname__�__firstlineno__rr%r(�__next__�__static_attributes__�__classdictcell__��
__classdict__s@rrrs����8�� ��Hr!rc�T`�\sQs]snQQks\QQk2s\QQk2sQs	Us
P!)�	Somethingc��P!r#r$�r�a�b�c�ds&&&&&r�meth�Something.meth s��Tr!c��P!r#r$)�clsr7r8r9r:s&&&&&r�cmeth�Something.cmeth"s��%)r!c��P!r#r$�r7r8r9r:s&&&&r�smeth�Something.smeth%s�� $r!r$r#)r*r+r,r-r;�classmethodr?�staticmethodrCr/r0r1s@rr4r4s$����)��)��)��$��$r!r4c�8`�\sQs])snQs\Q2sQsUsP!)�
SomethingElsec��PUmP!r#��	_instancers&rr�SomethingElse.__init__*s	����r!c�N�UO%fQUmUO!)�objectrJrs&r�instance�SomethingElse.instance-s���~�~�~�%�D�N��~�~�r!rJ)	r*r+r,r-r�propertyrOr/r0r1s@rrHrH)s��������r!rHc�$�\sQs]4sPsPsPsQsP!)�Typosr$)r*r+r,r-�	autospect�	auto_spec�set_specr/r$r!rrSrS4s���I��I��Hr!rSc��P!r#r$�r7s&r�	somethingrY:s��$r!c�`�\sQs]=snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsQsQsQsQsQsQsQsQsQsQsQsQsQsQs Qs!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-s0Q.s1Q/s2Q0s3Q1s4Q2s5Q3s6Q4s7Q5s8Q6s9Q7s:Q8s;Q9s<Q:s=Q;s>Q<s?Q=s@Q>sAQ?sBQ@sCQAsDQBsEQCsFQDsGQEsHQFsIQGsJQHsKQIsLQJsMQKsNQLsOQMsPQNsQQOsRQPsSQQsTQRsUQSsVQTsWQUsXQVsYQWsZQXs[QYs\QZs]Q[s^Q\s_Q]s`Q^saQ_sbQ`scQasdQbseQcsfQdsgQeshQfsiQgsjQhskQislQjsmQksnQlsoQmspQnsqQosrQpssQqstQrsuQssvQtswQusxQvsyQwszQxs{Qys|Qzs}Q{s~Q|sQ}s�Q~s�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�s�Q�s�Q�s�Q�s�Q�s�Q�s�Q�s�Us�P!)��MockTestc��[Q2P!)zfrom unittest.mock import *)�execrs&r�test_all�MockTest.test_all?s
��	
�
*�+r!c�t�[2oUOUOQ2UOUO]Q2UO[
UO[2Q2UOUOPQ2UOUO,Q2UOUO,Q2UOQUOQ2UOUOQ2UOUOQ	2UOUO -Q
2P!)z called not initialised correctlyz$call_count not initialised correctlyz&return_value not initialised correctlyz#call_args not initialised correctly�(call_args_list not initialised correctlyz&method_calls not initialised correctly�_itemsz/default mock should not have '_items' attributez parent not initialised correctlyz!methods not initialised correctlyz$children not initialised incorrectly)r�assertFalse�called�assertEqual�
call_count�
assertTruer�return_value�	call_args�call_args_list�method_calls�assertNotIn�__dict__�assertIsNone�_mock_parent�
_mock_methods�_mock_children�rrs& r�test_constructor�MockTest.test_constructorFs���v��������&H�I�������!�?�	A�����D�$5�$5�t�<�@�	B�	
�������>�	@�����,�,�b�C�	E�����*�*�B�B�	D�	
����4�=�=�J�	L�	
���$�+�+�<�	>����$�,�,�=�	?�����,�,�b�?�	Ar!c�X�[PQ5oUOUOQ2P!)N�rhz(return value in constructor not honoured)rrnrhrrs& r� test_return_value_in_constructor�)MockTest.test_return_value_in_constructorbs&����&�����$�+�+�D�	Fr!c�t�Qo[U2o]UOmUOU2]2P!)c��P!r#r$r$r!r�f�9MockTest.test_change_return_value_via_delegate.<locals>.fi���r!)rrrhre�rr{rs&  r�%test_change_return_value_via_delegate�.MockTest.test_change_return_value_via_delegatehs-����q�!��!"��	�	��������#r!c���Qo[U2o[2UOmUO	[29^tt^2U2PPP2P!)%fhP!9h)c��P!r#r$r$r!rr{�8MockTest.test_change_side_effect_via_delegate.<locals>.fpr}r!)r�	TypeErrorr�side_effect�assertRaisesr~s&  r�$test_change_side_effect_via_delegate�-MockTest.test_change_side_effect_via_delegateosB����q�!�� )���	�	��
�
�
�y�
)�
)��F�*�
)�
)�
)�s�A�A)	�!A)	c��Qo[QQ[-Q[[,QU-@oUO	[29^tt^2U2OPPPQ5PPP2UO
U2OPPPQ5U2UO
U2OO
OP2P!)%fhKp9h)ziIf kwargs are given to configure mock, the function must configure
the parent mock during initialization.zmocked value�speczreturn_value.meth.side_effectzreturn_value.meth.return_value�r7r8r9r$)	rr4�
ValueErrorrr�r;rerhr�)r�
mocked_result�
class_mocks&  r�5test_create_autospec_should_be_configurable_by_kwargs�>MockTest.test_create_autospec_should_be_configurable_by_kwargsvs���'�
�$�>�)�>�+�j�'�-B�,�m�8=�>�
��
�
�z�
*�
*��L�������5�+������*�*�T�T�T�*�B�M�R�	
�����2�2�7�7�C�C�T�J�+�
*�s�C�C	�C	c�p�QQ2o[UP	QQ5oUOUOQ2P!)c��\sQs]�sQsP!)�?MockTest.test_create_autospec_correctly_handles_name.<locals>.Xr$�r*r+r,r-r/r$r!r�Xr��s��r!r��Y)�spec_set�name)rre�
_mock_name�rr�rs&  r�+test_create_autospec_correctly_handles_name�4MockTest.test_create_autospec_correctly_handles_name�s)�����q�4�c�:��������#�.r!c	��[QQ5oUOQ[U22UOQ[U2*[U22[2Q1[QQ5Q1,oSFCDIvqUOQU*[UO22UOQU*[UO
222UOQU*[UO
2O22UOQU*[U222UOQ	U*[U2222UOQ
U*[U22O
OO2O22CJL	P!)�foo�r�z'%s'r�barz%s.barz%s.foo()z
%s.foo().bingz%s()z%s()()z%s()().foo.bar.baz().bing)r�assertIn�repr�idr�r��bing�baz)rr�mocksr�s&   r�	test_repr�MockTest.test_repr�s%�������
�
�e�T�$�Z�(��
�
�f�r�$�x�'��d��4��&�&�!�D�e�$4�e�#<�=���J�D��M�M�(�T�/�4����>�:��M�M�*�t�+�T�$�(�(�*�-=�>��M�M�/�D�0�$�t�x�x�z���2G�H��M�M�&�4�-��d�f��6��M�M�(�T�/�4����>�:��M�M�5��<��t�v�x�|�|�/�/�3�3�5�:�:�;�
=�
 r!c���QQ[2o[UQ5oUOQ[U22[U2Q5oUOQ[U22[UQ5oUOQ[U22[U2Q5oUOQ[U22[UQQ5oUOQ[U22UOQ[U22[QQ	5oUO	Q
[U22[2oUO	Q
[U22[Q,Q5oUO	Q
[U22P!)c��\sQs]�sQsP!)�'MockTest.test_repr_with_spec.<locals>.Xr$r�r$r!rr�r�����r!r��r�z
 spec='X' �r�z spec_set='X' r�)r�r�z name='foo' r�r�)rNrr�r�rlr�s&  r�test_repr_with_spec�MockTest.test_repr_with_spec�s
��	��	���|���
�
�l�D��J�/����~���
�
�l�D��J�/��Q����
�
�&��T�
�3��Q�S�!���
�
�&��T�
�3����'���
�
�l�D��J�/��
�
�n�d�4�j�1����������d��,��v�������d��,��%��!�������d��,r!c�`�[2oQoV!mUO[U]]]Q5UO]]]Q5,QNnU1QkoV!mUOU2U2U2,,Q	NQ2[[OQ5oUOUO[OQ2Qo[U[OQ5oUOU2[O2P!)
c��[Q2g)�kablooie)�SystemError)�args�kwargss*,r�effect�)MockTest.test_side_effect.<locals>.effect�s
���j�)�)r!��fishc�&:�RO2!r#��pop��resultss�rr�r�������;�;�=� r!zside effect not used correctly�r�z#side effect in constructor not usedc��[!r#�rr$r!rr��.MockTest.test_side_effect.<locals>.side_effect�s���Nr!)r�rh�����r�r�r�)	rr�r�r��assert_called_withrer	�
SideEffect�RETURN)rrr�r�r�s&   @r�test_side_effect�MockTest.test_side_effect�s�����v��	*�"�����+�t�Q����:�����1�1�-���	!�!�����$�&�$�&�$�&�1�9�:�	<��� 3� 3�4������)�)�8�+>�+>�?�	A�	���(�/�/�J����������1r!c�`�,QNnU1QkoQo[U2o,QNUmUOU2U2U2,,QNQ2,QNn[U2oVmUOU2U2U2,,QNQ2P!)r�c�&:�RO2!r#r�r�s�rr��2MockTest.test_autospec_side_effect.<locals>.effect�r�r!c��P!r#r$r$r!rr{�-MockTest.test_autospec_side_effect.<locals>.f�r}r!z1side effect not used correctly in create_autospecz'callable side effect not used correctlyr�r�)rr�re)rr�r{rr�s&   @r�test_autospec_side_effect�"MockTest.test_autospec_side_effect�s�����	!���q�!��$������$�&�$�&�$�&�1�9�M�	O����q�!��!�����$�&�$�&�$�&�1�9�C�	Er!c�r�Qo[U2o[Q2UmUO[QU2P!)c��P!r#r$r$r!rr{�7MockTest.test_autospec_side_effect_exception.<locals>.f�r}r!zBazinga!)rr�r��assertRaisesRegexr~s&  r�#test_autospec_side_effect_exception�,MockTest.test_autospec_side_effect_exception�s.����q�!��%�j�1������z�:�t�<r!c
�H�QQ[2o[OOUQ29^tt^2UO[Q29^tt^2[U2OPPP2UO[Q29^tt^2[OOUQP	Q5O2PPP2UO[Q29^tt^2[OOUOQP	Q5O2PPP2UO[Q29^tt^2[OOUQUOQ	5O2PPP2UO[Q
29^tt^2[OOUQUOQ5O2PPP2UO[Q
29^tt^2[OOUQUOQ5O2PPP2UO[Q29^tt^2[OUO2PPP2[OQ
[O229^tt^2[O2PPP2PPP2P!)%fhCK�9h)%fhCKJ9h)%fhCK�9h)%fhCK�9h)%fhCKc9h)%fhCK9h)%fhK�9h)%fhK�9h)%fhP!9h)c�.�\sQs]�sQQ\2sQsP!)�&MockTest.test_autospec_mock.<locals>.Ac��\sQs]�sPsQsP!)�(MockTest.test_autospec_mock.<locals>.A.Br$)r*r+r,r-�Cr/r$r!r�Br��s���r!r�r$)r*r+r,r-rNr�r/r$r!r�Ar��s��
�F�
�
r!r�r�z8Cannot autospec attr 'B' from target <MagicMock spec='A'z(Cannot autospec attr 'B' from target 'A'��autospecz-Cannot autospec attr 'C' as the patch target r�z!Cannot spec attr 'B' as the spec r�z%Cannot spec attr 'B' as the spec_set r�zCannot spec a Mock object.z
builtins.open)
rNrrr�rrr��startr�	mock_open)rr�s& r�test_autospec_mock�MockTest.test_autospec_mock�s���	��	��Z�Z�
�
�q�#�
&�
&��'�'�(8�(b�d�d���"�$�$�d��'�'�(8�(R�T�T��
�
�!�!�!�S�4�!�8�>�>�@�T��'�'�(8�(W�Y�Y��
�
�!�!�!�#�#�s�T�!�:�@�@�B�Y��'�'�(8�(K�M�M��
�
�!�!�!�S�q�s�s�!�3�9�9�;�M��'�'�(8�(O�Q�Q��
�
�!�!�!�S�1�3�3�!�7�=�=�?�Q��'�'�(8�(O�Q�Q��
�
�!�!�!�S�1�3�3�!�7�=�=�?�Q��'�'�(8�:V�W�W��	�	�!�#�#��X����O�T�^�^�-=�>�>���� �?�+'�
&�d�d�d��T�T�T��Y�Y�Y��M�M�M��Q�Q�Q��Q�Q�Q��X�W��>�>��+'�
&�
&�s�N�K2	�.&N�1L	�&N�+;L	�&&N�;L.	�&N�-;M	�(&N�;M	�	&N�/!M*	�:N�
M=	� N�2L
�;L
�=	N�L
�L
�	N�L+
�#L+
�%	N�.L?
�7L?
�9	N�M
�M
�
	N�M'
�M'
�!	N�*M:
�3M:
�5N�=N

�N

�N�N!	�N!	c�`�QnU1QkQ2o[VQ5o[OUmUO	U2O2R2UO	UO
OUO
2P!)zOAutospec a class with wraps & test if the call is passed to the
wrapped object.�real resultc�0:`�\sQsQsnU1QksQsUsP!)�9MockTest.test_create_autospec_wraps_class.<locals>.Result�c�
:�R!r#r$�r�results&�r�
get_result�DMockTest.test_create_autospec_wraps_class.<locals>.Result.get_result�����
r!r$�r*r+r,r-r�r/r0�r2r�s@�r�Resultr������
�
r!r��r��wraps)rrrrhrer��_mock_wraps)rr�r�r�s&  @r� test_create_autospec_wraps_class�)MockTest.test_create_autospec_wraps_class
sk�����	�	�%�&�?�
�#'�,�,�
�������0�0�2�F�;�����.�.�:�:�F�<M�<M�Nr!c�"`�QnU1QkQ2o[UP	UQ5o[OUOmUOUO2R2UOUOOUO2P!)zXAutospec a class instance with wraps & test if the call is passed
to the wrapped object.r�c�::`�\sQsQsn\U1Qk2sQsUsP!)�BMockTest.test_create_autospec_instance_wraps_class.<locals>.Result�c�
:�R!)z�This is a static method because when the mocked instance of
'Result' will call this method, it won't be able to consume
'self' argument.r$)r�s�rr��MMockTest.test_create_autospec_instance_wraps_class.<locals>.Result.get_result s
���
�
r!r$)r*r+r,r-rFr�r/r0r�s@�rr�rs����
�
��
r!r�)r�rOr�)rrrr�rhrer�)rr��
instance_mockr�s&  @r�)test_create_autospec_instance_wraps_class�2MockTest.test_create_autospec_instance_wraps_classss�����	�	�(�V�d�&�Q�
�15���
� � �-�����1�1�3�V�<�����1�1�=�=�v�?P�?P�Qr!c�`�QnU1QkQ2o[UOUOQ5oUOUU22R2P!)z^Autospec a function or a method with wraps & test if the call is
passed to the wrapped object.r�c�0:`�\sQsQsnU1QksQsUsP!)�AMockTest.test_create_autospec_wraps_function_type.<locals>.Result�4c�
:�R!r#r$r�s&�rr��LMockTest.test_create_autospec_wraps_function_type.<locals>.Result.get_result5r�r!r$r�r�s@�rr�r	4r�r!r�r�)rr�re)rr��	func_mockr�s&  @r�(test_create_autospec_wraps_function_type�1MockTest.test_create_autospec_wraps_function_type/sE�����	�	�$��):�):�&�BS�BS�T�	�����6�8�,�f�5r!c�d�Qo[VQ5oQoV2mUOU2U2P!)z�If the mock has an explicit return_value set then calls are not
passed to the wrapped object and the return_value is returned instead.
c��P!r#r$r$r!r�my_func�NMockTest.test_explicit_return_value_even_if_mock_wraps_object.<locals>.my_func>s��r!r�zexplicit return value)rrhre)rrr
rhs&   r�4test_explicit_return_value_even_if_mock_wraps_object�=MockTest.test_explicit_return_value_even_if_mock_wraps_object:s.��	�#��@�	�.��!-�������l�3r!c	���[2o[UPQ5oU]]]2[UPQ5oU]]]2UOUO[]]]2[]]]2,2P!)N)�parentrh)rre�
mock_callsr)rr�mock1�mock2s&   r�test_explicit_parent�MockTest.test_explicit_parentEsb������F��6��
�a��A���F��6��
�a��A������*�*�T�!�Q��]�D��A�q�M�,J�Kr!c���[2oQ,o[QVQ5oU[O[OQ5UOoUO2[O
UmUOoU2UO2UOUOQQ2UOUOUQ2UOUOUQ2UOUOQ2UOUO]Q2UOUO PQ	2UOUO",Q
2UOUO$,QUO$8Q,802UOUO&,2UOUO[O
Q
2UOUOUQ2UOUOQ2UOUO(QU-Q2UOUOUQ2UOUOOQ2P!)rY�child)r�rr��rYzname incorrectly resetzparent incorrectly resetzmethods incorrectly resetzcalled not resetzcall_count not resetzcall_args not resetzcall_args_list not resetz(method_calls not initialised correctly: z != zside_effect incorrectly resetzreturn_value incorrectly resetzreturn value mock not resetzchildren reset incorrectlyzchildren incorrectly clearedzchild not reset)rr	r4rHrYr�r�rh�
reset_mockrer�rorprcrdrfrirjrkrrq)rrr�rrYrhs&     r�test_reset_mock�MockTest.test_reset_mockNs�������}�����;���X�
�
�8�+A�+A�B��N�N�	�����#�.�.����(�(��������������'�1�	3�����*�*�F�3�	5�����+�+�T�4�	6�	
������&8�9�������!�-C�D��������/D�E�����,�,�b�2L�M�����*�*�B��*�*�B�0�	1�	
������"�-�����)�)�8�+>�+>�9�	;�����*�*�L�:�	<�����,�,�.K�L�����,�,�{�I�.F�6�	8��������8�	:�������.�.�0A�Br!c�J�[2oVmUO2P!r#)rrhr rrs& r�test_reset_mock_recursion�"MockTest.test_reset_mock_recursionws���v�� ��	
���r!c�R�[O2oUO2P!r#)rr�r �rr7s& r�(test_reset_mock_on_mock_open_issue_18622�1MockTest.test_reset_mock_on_mock_open_issue_18622~s���N�N���	���r!c���[2oUO[UO[2Q2U2oUO	U2UQ2UO
2U[O2oUOUOQ2UO	UO]Q2UO	UO[O1-1Q2UO	UOO[O1Q2UO	UOO-Q2UO	UO[O1-1,Q2[OUmU[O[OQ5oUO	U[OQ2UO	UO]Q2UO	UO[O1Q[O-1Q2UO	UO[O1-1[O1Q[O-1,Q	2P!)
z%Default return_value should be a Mockz'different result from consecutive callszcalled not setzcall_count incorrectzcall_args not setra)�keyzincorrect return valuer+zcall_args_list not set)rrgrrhrer r	�Argrdrfrir�r�rj�ReturnValue�KeyArg)rrr��ret_vals&   r�	test_call�MockTest.test_call�s����v������D�$5�$5�t�<�?�	A����������B�	D������x�|�|�$��������%5�6�������!�-C�D�������8�<�<�/�2�)>�,�	.�������,�,�x�|�|�o�,�	.�������.�.��,�	.�����,�,������/D�.E�C�	E�%�0�0����x�|�|����9������(�"6�"6�1�	3�	
������!�-C�D�������#�<�<�/�E�8�?�?�+C�D�,�	.�	
����,�,��l�l�_�b�!��l�l�_�u�h�o�o�6�7�/
�
%�		&r!c	� �[2oU2U[O2U[OQ5U[O[OQ5UO	UO
Q[O11Q[O-1[O1Q[O-1,2UO	UO[O1Q[O-12UO	UOO[O12UO	UOOQ[O-2UOUOQ6H2P!))�kwr3za long sequencer$)
rr	r,�Kwargrerjrir�r�rcrrs& r�test_call_args_comparison�"MockTest.test_call_args_comparison�s���v�����X�\�\��������X�\�\�h�n�n�-�����,�,���l�l�_���H�N�N�
#�%��l�l�_�t�X�^�^�4�5�	/
�	�	
������#�<�<�/�D�(�.�.�+A�B�	D�������,�,�x�|�|�o�>�������.�.��x�~�~�0F�G�	
������+<�<�=r!c�l�[O2oUOV6H2UOV6g2UOU[O26H2UOU[O26g2UOU[O6H2UOU[O6g2UO[OU6H2UO[OU6g2UOU[
6H2UOU[
6g2[O[O22o[O[O2oUOV#6H2UOV#6g2UOV26H2UOV26g2UOU[
6H2UOU[
6g2UOU]6H2UOU]6g2P!�r�)rr
rgrc�ANYrr)r�mm�call1�call2s&   r�test_calls_equal_with_any�"MockTest.test_calls_equal_with_any�s���^�^�
�������!������"�����t�~�~�/�/�0�����d�n�n�.�.�/�����d�h�h��'�����t�x�x��(�������B��'�������R��(�����i��(�����y��)��	�	�$�.�.�*�+���	�	�$�(�(�#�������'������(������'������(������*�+�����)�+�,�����!��$������
�#r!c�8�[2oU2UO2UO[UO]2UO2UO[UO2U]]]QQQ5UO]]]QQQ5P!)r�r��nothing�r7r8)rr�r��AssertionErrorr rrs& r�test_assert_called_with� MockTest.test_assert_called_with�sz���v����	
���!����.�$�*A�*A�1�E��������.�$�*A�*A�B��Q��1��)�,�����1�a�6�Y�?r!c�z�[2oU[22UO[O2P!r#)r
r�rr9�r�ms& r�test_assert_called_with_any�$MockTest.test_assert_called_with_any�s$���K��	�)�+��	���T�X�X�&r!c���QQko[UQ5oU]]]Q5UO]]]2UO]]]Q5UO[UO]]]Q5UO[29^tt^2oUO]Q5PPP2UO	WO
O[2P!)%fhK<9h)Nc��P!r#r$rBs&&&&rr{�9MockTest.test_assert_called_with_function_spec.<locals>.f����r!r��r8r9r���er#)rr�r�rB�assertIsInstance�	exception�	__cause__r��rr{r�cms&   r�%test_assert_called_with_function_spec�.MockTest.test_assert_called_with_function_spec�s���$���|���Q�!�q������1�a�(����!�q�A�.����.�$�*A�*A��q�A�	�	'��
�
�~�
.�
.�"��#�#�a�(�/����b�l�l�4�4�i�@�/�
.�s�C�C 	�C 	c�`�U1Qko[[2OQ5oUU2[[OQ5oUU2[[2OQ5oUU2[[OQ5oUU2[[2OQ5oUU2P!)c�:�U]]]Q5UO]]]2UO]]]Q5RO[UO]]]Q5P!)r�rNr�)r�r�rB�rrs&�r�_check�<MockTest.test_assert_called_with_method_spec.<locals>._checksW�����a�1���#�#�A�q�!�,��#�#�a�1��2����n�d�.E�.E��1��
�
+r!r�)rr4r;r?rC)rr[rsf  r�#test_assert_called_with_method_spec�,MockTest.test_assert_called_with_method_spec�s���	+����)�)�*���t������)���t�����*�*�+���t������)���t�����*�*�+���t�r!c��QoUO[UOQ229^tt^2[2O	2PPP2UO[UOQ229^tt^2[QQ5O	2PPP2P!)%fhKb9h)%fhP!9h)z"Expected '{0}' to have been calledr�	test_namer�)r�rB�formatr�
assert_called)r�msgs& r�$test_assert_called_exception_message�-MockTest.test_assert_called_exception_messages���2��
�
#�
#�N�C�J�J�v�4F�
G�
G��F� � �"�H�
�
#�
#�N�C�J�J�{�4K�
L�
L��k�"�0�0�2�M�
L�H�
G��
L�
L�
L�s#�B$�?B7�$B4	�-B4	�7C	�C	c�`�[2nR2RO2R2UO[RO2RO2UO[RO2RQQ]Q5ROQQ]Q5RO2RQQ]Q5UO[U1Qk2P!)r�r��r�c�0:�ROQQ]Q5!)�bobr�rg��assert_called_once_withrs�r�<lambda>�7MockTest.test_assert_called_once_with.<locals>.<lambda>/s���D�0�0���1�Er!)rrkr�rBr rrs&@r�test_assert_called_once_with�%MockTest.test_assert_called_once_withs�����v����	
�$�$�&������.�$�*F�*F�G��������.�$�*F�*F�G��U�E�q�!��$�$�U�E�q�9������U�E�q�!�����E�	
r!c�`�[2nR]2R]2UO[[OQ2U1Qk2P!)r�zCalls: [call(1), call(2)]c�(:�RO]2!�r�rj)rGs�rrl�AMockTest.test_assert_called_once_with_call_list.<locals>.<lambda>8s���A�-�-�a�0r!)rr�rB�re�escaperFs&@r�&test_assert_called_once_with_call_list�/MockTest.test_assert_called_once_with_call_list2s8����F��	�!��	�!�����~��I�I�1�2�0�	2r!c�f�QQko[UQ5oU]]]Q5UO]]]2UO]]]Q5UO[UO]]]Q5UO[29^tt^2oUO]Q5PPP2UO	WO
O[2U]]]2UO[UO]]]2UO[UO]]]2P!)%fhK�9h)Nc��P!r#r$rBs&&&&rr{�>MockTest.test_assert_called_once_with_function_spec.<locals>.f<rMr!r�rNr�rOr#)rrkr�rBrQrRrSr�rTs&   r�*test_assert_called_once_with_function_spec�3MockTest.test_assert_called_once_with_function_spec;s���$���|���Q�!�q���$�$�Q��1�-��$�$�q�A��3����.�$�*F�*F��q�A�	�	'��
�
�~�
.�
.�"��(�(�1�-�/����b�l�l�4�4�i�@��Q��1�
����.�$�*F�*F��Q��	#����.�$�*F�*F��Q��	#�/�
.�s�D � D0	�)D0	c�t�[2oUOoUO[U[2Q2UO	UOUQ2[2o]UOmUO	UO2]Q2UOUOOQ2P!)zattribute isn't a mockz+different attributes returned for same namezmethod returned wrong valuez!method didn't record being called)rrYrgrrerhrd�rrrYs&  r�#test_attribute_access_returns_mocks�,MockTest.test_attribute_access_returns_mocksQs����v���N�N�	�����I�t�4�6N�O��������F�	H��v��&'����#�������)�1�.K�L�������-�-�;�	=r!c��[2oUOoUOUOQQ2UOUOUQ2P!)rYz attribute name not set correctlyz"attribute parent not set correctly)rrYrer�ror~s&  r�(test_attributes_have_name_and_parent_set�1MockTest.test_attributes_have_name_and_parent_setasH���v���N�N�	�����-�-�{�;�	=�����/�/��=�	?r!c�~�[2oUO]PQ5UOO][OQ5UOUOOQQQ[O-1,Q2UOUOQQ	QP-1QQQ[O-1,Q2P!)
r�r�)�cakerYr�z#method calls not recorded correctlyr�zsomething_else.something)��r�)rrY�something_elser	�Cakererkrrs& r�test_method_calls_recorded�#MockTest.test_method_calls_recordedks����v�����q�t�$����%�%�a�h�m�m�%�<�����,�,�9�9�'����
�
�/F�G�H�?�	A�	
����*�*�
�$����/�
'����
�
�/F�G�-
�
2�		3r!c��[2oUO2UOUOQ,2UOUOQQ-1,2[2oUOQ2UOUOQ
,2UOUOQQ	-1,2[2oUO]Q5UOUOQQ]-1,2UOUOQQQ]-1,2[2oUOQQQ5UOUOQQ	QQ-1,2P!)rY�	different��xr��more)�somer�rr$�r�)rYr�)rrYrerkrrs& r� test_method_calls_compare_easily�)MockTest.test_method_calls_compare_easilyzs6���v����������*�*�^�,<�=�����*�*�k�2�r�-B�,C�D��v�����{�#�����*�*�-J�,K�L�����*�*�&���;�<�	>��v�����������*�*�k�C��8�-D�,E�F�����*�*�k�2��Q�x�-H�,I�J��v�����{��0�����*�*�
�.�6�6�*:�;�-
�	r!c��Q,Q1FDCoQFD9o[Q-V!-@oUOUO[Q[UQ2J;	JE	P!)rYz-Mock object has no attribute 'something_else'r�r)r�r�r$)rrYr��AttributeError�getattr)rr��argrs&   r�test_only_allowed_methods_exist�(MockTest.test_only_allowed_methods_exist�sQ�� �M�>�1�D�)���*�s�k�*������&�&�"�C��T�#3��*�2r!c�`�QQ[2oU1QkoU[UQ52U[U2Q52P!)c�0`�\sQsQsn]sPsQsQsUsP!)�*MockTest.test_from_spec.<locals>.Something�c��P!r#r$rs&r�y�,MockTest.test_from_spec.<locals>.Something.y�s��r!r$)	r*r+r,r-r��
__something__r�r/r0r1s@rr4r��s�����A� �M��r!r4c��:�UOUOUORO[Q[
UQ2RO[Q[
UQ2P!)z Mock object has no attribute 'z'�zz)Mock object has no attribute '__foobar__'�
__foobar__)r�r�r�r�r�r�rZs&�r�test_attributes�0MockTest.test_from_spec.<locals>.test_attributes�sR����F�F��F�F�����"�"��2���s�
�

�"�"��;���|�
r!r�)rNr)rr4r�sf  r�test_from_spec�MockTest.test_from_spec�s2���	��	�
	� 	��)�,�-���)�+�.�/r!c�J�[2o[UQ5oUOUO[2UO	UO[2UOU2U22UO2U]]]Q5UO
]]]Q5P!)�r�r�)rrerhr�assertNotEqualr r��r�realrs&  r�test_wraps_calls�MockTest.test_wraps_calls�s����v���$���
	
����*�*�G�4�	
���D�-�-�w�7��������(������Q��������1�1��-r!c�`�QQ[2oU2o[UQ5nUO[U1Qk2P!)c��\sQsQsQsP!)�FMockTest.test_wraps_prevents_automatic_creation_of_mocks.<locals>.Real��r$r�r$r!r�Realr��r�r!r�r�c�(:�RO2!r#)�new_attrrs�rrl�JMockTest.test_wraps_prevents_automatic_creation_of_mocks.<locals>.<lambda>�s���$�-�-�/r!)rNrr�r��rr�r�rs&  @r�/test_wraps_prevents_automatic_creation_of_mocks�8MockTest.test_wraps_prevents_automatic_creation_of_mocks�s3���	�6�	��v���$������.�*A�Br!c��[2o[UQ5o]UmUOU2]2UOUO2P!)r�)rrhrercrdr�s&  r�,test_wraps_call_with_nondefault_return_value�5MockTest.test_wraps_call_with_nondefault_return_value�s?���v���$������������#�������%r!c�
`�QQ[2oU2o[UQ5nUORO2UO22UO	[
U1Qk2UO
ROUO2ROO]]]Q5oUOOO]]]Q5UOV1OO22P!)c�&�\sQsQs\2sQsP!)�,MockTest.test_wraps_attributes.<locals>.Real��r$)r*r+r,r-r�	attributer/r$r!rr�r��s	����Ir!r�r�c�:�RO!r#r�rs�rrl�0MockTest.test_wraps_attributes.<locals>.<lambda>�s	���$�)�)r!r�)	rNrrer�r�r�r��frogr�)rr�r�r�rs&   @r�test_wraps_attributes�MockTest.test_wraps_attributes�s����	�6�	��v���$���������)�4�>�>�+;�<����.�*;�<����D�N�N�D�N�N�;����$�$�Q���$�2�������.�.�q�!�!�.�<�������!4�!4�!6�7r!c��QQ[2oU2o[UQ5o[O[,UO
mUOUO
2[O2UOUO
2[O2UO[UO
2P!)c�(`�\sQsQsnQsQsUsP!)�[MockTest.test_customize_wrapped_object_with_side_effect_iterable_with_default.<locals>.Real��c�$�[O!r#)r	�ORIGINAL_VALUErs&r�method�bMockTest.test_customize_wrapped_object_with_side_effect_iterable_with_default.<locals>.Real.method�s���.�.�.r!r$�r*r+r,r-r�r/r0r1s@rr�r��s����
/�
/r!r�r�)rNrr	�VALUE1rr�r�rer�r��
StopIterationr�s&   r�Dtest_customize_wrapped_object_with_side_effect_iterable_with_default�MMockTest.test_customize_wrapped_object_with_side_effect_iterable_with_default�s���	/�6�	/��v���$���#+�?�?�G�"<���������������8���������(?�(?�@����-����5r!c��QQ[2oU2o[UQ5o[O[O,UO
mUOUO
2[O2UOUO
2[O2UO[UO
2P!)c�(`�\sQsQsnQsQsUsP!)�NMockTest.test_customize_wrapped_object_with_side_effect_iterable.<locals>.Real�c��P!r#r$rs&rr��UMockTest.test_customize_wrapped_object_with_side_effect_iterable.<locals>.Real.method���dr!r$r�r1s@rr�r������"�"r!r�r�)
rNrr	r��VALUE2r�r�rer�r�r�s&   r�7test_customize_wrapped_object_with_side_effect_iterable�@MockTest.test_customize_wrapped_object_with_side_effect_iterables���	#�6�	#��v���$���#+�?�?�H�O�O�"D���������������8�����������8����-����5r!c��QQ[2oU2o[UQ5o[UOmUO[UO2P!)c�(`�\sQsQsnQsQsUsP!)�OMockTest.test_customize_wrapped_object_with_side_effect_exception.<locals>.Real�c��P!r#r$rs&rr��VMockTest.test_customize_wrapped_object_with_side_effect_exception.<locals>.Real.methodr�r!r$r�r1s@rr�r�r�r!r�r�)rNr�RuntimeErrorr�r�r�r�s&   r�8test_customize_wrapped_object_with_side_effect_exception�AMockTest.test_customize_wrapped_object_with_side_effect_exception
sA��	#�6�	#��v���$���".��������,����4r!c���QQ[2oQoU2o[UQ5oV$OmUO	UO2[
O2P!)c�(`�\sQsQsnQsQsUsP!)�NMockTest.test_customize_wrapped_object_with_side_effect_function.<locals>.Real�c��P!r#r$rs&rr��UMockTest.test_customize_wrapped_object_with_side_effect_function.<locals>.Real.methodr�r!r$r�r1s@rr�r�r�r!r�c�$�[O!r#)r	�VALUEr$r!rr��UMockTest.test_customize_wrapped_object_with_side_effect_function.<locals>.side_effects���>�>�!r!r�)rNrr�r�rer	r�)rr�r�r�rs&    r�7test_customize_wrapped_object_with_side_effect_function�@MockTest.test_customize_wrapped_object_with_side_effect_functionsJ��	#�6�	#�	"��v���$���"-��������������7r!c���QQ[2oU2o[UQ5o[OUOmUO
UO2[O2P!)c�(`�\sQsQsnQsQsUsP!)�FMockTest.test_customize_wrapped_object_with_return_value.<locals>.Real�&c��P!r#r$rs&rr��MMockTest.test_customize_wrapped_object_with_return_value.<locals>.Real.method'r�r!r$r�r1s@rr�r�&r�r!r�r�)rNrr	r�r�rhrer�s&   r�/test_customize_wrapped_object_with_return_value�8MockTest.test_customize_wrapped_object_with_return_value%sK��	#�6�	#��v���$���#+�>�>���� �����������7r!c���QQ[2oU2o[UQ5o[O[O,UO
m[OUO
mUOUO
2[O2UOUO
2[O2UO[UO
2P!)c�(`�\sQsQsnQsQsUsP!)�VMockTest.test_customize_wrapped_object_with_return_value_and_side_effect.<locals>.Real�2c��P!r#r$rs&rr��]MockTest.test_customize_wrapped_object_with_return_value_and_side_effect.<locals>.Real.method3r�r!r$r�r1s@rr�r�2r�r!r�r�)rNrr	r�r�r�r��WRONG_VALUErhrer�r�r�s&   r�?test_customize_wrapped_object_with_return_value_and_side_effect�HMockTest.test_customize_wrapped_object_with_return_value_and_side_effect0s���	#�6�	#��v���$���#+�?�?�H�O�O�"D�����#+�#7�#7���� �����������8�����������8����-����5r!c��QQ[2oU2o[UQ5oQUOm[O
UOmUOUO2[O
2P!)c�(`�\sQsQsnQsQsUsP!)�WMockTest.test_customize_wrapped_object_with_return_value_and_side_effect2.<locals>.Real�Ac��P!r#r$rs&rr��^MockTest.test_customize_wrapped_object_with_return_value_and_side_effect2.<locals>.Real.methodBr�r!r$r�r1s@rr�rAr�r!r�r�c��[!r#r�r$r!rrl�[MockTest.test_customize_wrapped_object_with_return_value_and_side_effect2.<locals>.<lambda>Fs��'r!)rNrr�r�r	r�rhrer�s&   r�@test_customize_wrapped_object_with_return_value_and_side_effect2�IMockTest.test_customize_wrapped_object_with_return_value_and_side_effect2?sW��	#�6�	#��v���$���"1�����#+�>�>���� �����������7r!c���QQ[2oU2o[UQ5o[O[,UO
m[OUO
mUOUO
2[O2UOUO
2[O2UO[UO
2P!)c�(`�\sQsQsnQsQsUsP!)�^MockTest.test_customize_wrapped_object_with_return_value_and_side_effect_default.<locals>.Real�Mc��P!r#r$rs&rr��eMockTest.test_customize_wrapped_object_with_return_value_and_side_effect_default.<locals>.Real.methodNr�r!r$r�r1s@rr�rMr�r!r�r�)rNrr	r�rr�r�r�rhrer�r�r�s&   r�Gtest_customize_wrapped_object_with_return_value_and_side_effect_default�PMockTest.test_customize_wrapped_object_with_return_value_and_side_effect_defaultLs���	#�6�	#��v���$���#+�?�?�G�"<�����#+�?�?���� �����������8�����������8����-����5r!c�J�QQ-o[UQ5oUOUOQ2Q2UOUQ*[2UO	QU72QUOmUOUOQ2Q2[OUOmUOUOQ2Q2UOUOQ2P2UOUQ*[2UO	QU72QUQ$UOUOQ2Q2UOUQ*[2UO	QU72UQUOUOQ2P2P!)r�r�r�rhr��spam)r
re�getrQrcrhr	r)r�data�wrapped_dicts&  r�test_magic_method_wraps_dict�%MockTest.test_magic_method_wraps_dictZsg���u�~�� �t�,������)�)�%�0�%�8����l�5�1�9�=�����,�.�/�)7����%�����)�)�%�0�.�A�)1�(8�(8����%�����)�)�%�0�%�8�����)�)�%�0�$�7����l�5�1�9�=�����,�.�/���U������)�)�%�0�&�9����l�5�1�9�=�����,�.�/���K�����)�)�%�0�$�7r!c��QQ2o[UQ5oU2oUOUO]2]2UOU]*]2UOUO2Q2P!)c�.`�\sQsQsnQsQsQsUsP!)�3MockTest.test_magic_method_wraps_class.<locals>.Foo�}c��U!r#r$)r�indexs&&r�__getitem__�?MockTest.test_magic_method_wraps_class.<locals>.Foo.__getitem__s���r!c��Q!�r�r$rs&r�__custom_method__�EMockTest.test_magic_method_wraps_class.<locals>.Foo.__custom_method__�s��r!r$)r*r+r,r-r%r)r/r0r1s@r�Foor!}s����
�
�
r!r+r�r�)r
rer%r))rr+�klass�objs&   r�test_magic_method_wraps_class�&MockTest.test_magic_method_wraps_class{se��	�	���$���g���������+�Q�/�����Q���#�����.�.�0�%�8r!c��[[Q5oUO[U2[[Q2Q5oUO[U2P!�r�r�)rr�r�rrs& r�test_exceptional_side_effect�%MockTest.test_exceptional_side_effect�s;����/�����.�$�/���u� 5�6�����.�$�/r!c��[[Q5oUO[U2[[Q2Q5oUO[U2P!r1)r�KeyboardInterruptr�rrs& r� test_baseexceptional_side_effect�)MockTest.test_baseexceptional_side_effect�s?��� 1�2�����+�T�2�� 1�%� 8�9�����+�T�2r!c�^�[2oUO[QUO2P!)z
not called)rr�rBr�rrs& r�test_assert_called_with_message�(MockTest.test_assert_called_with_message�s$���v�����~�|� $� 7� 7�	9r!c�b�[QQ5oUO[QUO2P!)�geoffreyr�z'Expected 'geoffrey' to be called once\.)rr�rBrkrrs& r�$test_assert_called_once_with_message�-MockTest.test_assert_called_once_with_message�s(����$�����~�?��1�1�	3r!c�`�[2nUO[U1Qk2QRmUO	ROQ2P!)c�:�RO!r#)r*rs�rrl�'MockTest.test__name__.<locals>.<lambda>�s	���$�-�-r!r�)rr�r�r*rerrs&@r�test__name__�MockTest.test__name__�s6����v�����.�*?�@���
��������.r!c���QQ[2o[UQ,2Q5oUO]2UOO]2UO	[
[UQ2P!)c��\sQsQsQsP!)�-MockTest.test_spec_list_subclass.<locals>.Sub�r$r�r$r!r�SubrF�r�r!rHr�r�)�listr�appendr�r�r�r�)rrHrs&  r�test_spec_list_subclass� MockTest.test_spec_list_subclass�sO��	�$�	���e�W��&�����A�����&�&�q�)����.�'�4��?r!c��QQ[2o[UQ5oUOV!2[U2Q5oUOV!2UOUOU2UO[2OOQ2[UQ5oUOV!2[U2Q5oUOV!2P!)c��\sQsQsQsP!)�#MockTest.test_spec_class.<locals>.X�r$r�r$r!rr�rO�r�r!r�r�rr�)rNrrQ�assertIs�	__class__rer*r�s&  r�test_spec_class�MockTest.test_spec_class�s���	��	���|�����d�&����~�����d�&��
�
�d�n�n�a�(������)�)�2�2�F�;��Q������d�&��Q�S�!�����d�&r!c��QQ2o[UQ5oUOV!2[U2Q5oUOV!2UOUOU2UO	[2OO
Q2[UQ5oUOV!2[U2Q5oUOV!2P!)c��\sQsQsQsP!)�2MockTest.test_spec_class_no_object_base.<locals>.X��r$r�r$r!rr�rW�r�r!r�r�rr�)rrQrQrRrer*r�s&  r�test_spec_class_no_object_base�'MockTest.test_spec_class_no_object_base�s���	�	���|�����d�&����~�����d�&��
�
�d�n�n�a�(������)�)�2�2�F�;��Q������d�&��Q�S�!�����d�&r!c�`�QQ[2o[UQ5nQRm[UQ5nU1QkoQRmUO	[
U2P!)c��\sQsQs]sQsP!)�8MockTest.test_setting_attribute_with_spec_set.<locals>.X��r$)r*r+r,r-r�r/r$r!rr�r]�s���Ar!r�r�r�r�c�:�QRmP!r(r�rs�r�set_attr�?MockTest.test_setting_attribute_with_spec_set.<locals>.set_attr�s
����D�Fr!)rNrr�r�r�r�)rr�r`rs&  @r�$test_setting_attribute_with_spec_set�-MockTest.test_setting_attribute_with_spec_set�sI���	��	���|������Q���	�������.�(�3r!c���[O2oUO[OU2[O[	Q22[
O
[
22P!)ge��A)�sys�getrecursionlimit�
addCleanup�setrecursionlimit�int�copyr)r�currents& r�	test_copy�MockTest.test_copy�sF���'�'�)������-�-�w�7�	���c�$�i�(��	�	�$�&�r!c��`�QQ[2oUUQ5nUORO]2U1QkoUO[U2U1QkoUO[
U2P!)c�@`�\sQsQsnQsQs\\\2sQsUs	P!)�8MockTest.test_subclass_with_properties.<locals>.SubClass�c��]!r�r$rs&r�_get�=MockTest.test_subclass_with_properties.<locals>.SubClass._get�s��r!c��[Q2g)z
strange error)�	NameError)r�values&&r�_set�=MockTest.test_subclass_with_properties.<locals>.SubClass._sets
����0�0r!r$)
r*r+r,r-rsrxrQ�some_attributer/r0r1s@r�SubClassrp�s����
�
1�%�d�D�1�Nr!r{r�c�:�]RmP!r�)rz��ss�r�test�4MockTest.test_subclass_with_properties.<locals>.tests��� �A�r!c�:�QRmP!�r�r(r}s�rrr�s
����A�Er!)rrerzr�rvr�)rr{rr~s&  @r�test_subclass_with_properties�&MockTest.test_subclass_with_properties�s[���	2�t�	2�
�h�'������)�)�1�-�	!����)�T�*�	����.�$�/r!c��[2oQoU[U2mUQ2UOQ2UO	[
UQQ2P!)c�H�UOU2UOU2!r#)�_increment_mock_call�
_mock_callr's&&r�__call__�,MockTest.test_setting_call.<locals>.__call__s���%�%�a�(��?�?�1�%�%r!�one�two)r�typer�r�r�r�)rrr�s&  r�test_setting_call�MockTest.test_setting_callsE���v��	&�'��T�
���U������&����)�T�5�%�8r!c	�z�[2o[[U22o[[[2Tt,tFDp3OQ2%cJUMJ	to2oUO	[2VB*
2UO
UO1UOQ[U22UOQ[U22P9UmUm	UOQ[U22UOQ[U22QUm
UOQ[U22P!ttoh)�_r7r8r9r:c��[,2!r#)rr}s&rrl�#MockTest.test_dir.<locals>.<lambda>1s��$�r�(r!r%)r�set�dir�
startswithrer7r8r�r9r:r%)rr�attrsrG�
type_attrss&    r�test_dir�MockTest.test_dirs����v���C��I����S��Y�H�Y��l�l�3�6G�!�!�Y�H�I�
�	
�����
� 2�3�	
��������
�
�c�3�t�9�%��
�
�c�3�t�9�%��������
�
�c�3�t�9�%��
�
�c�3�t�9�%�+��
��
�
�j�#�d�)�,��#Is�D8�D8c�J�[[OQ5o[[	[O22o[[	U22oUO[2V#*
2]UmUO[	U2OQ2]2P!)r��version)r�unittest�TestCaser�r�rer��count)rr�testcase_attrsr�s&   r�test_dir_from_spec�MockTest.test_dir_from_spec5sq����*�*�+���S��!2�!2�3�4���C��I���	
������ 6�7��������T�����3�Q�7r!c�T�[O[QP
2oUO2[	[[
222o[	[[22oUO[	2V2*
2UO2P!SO2h9h)�
FILTER_DIR)	rrNrr�r�r�rre�stop)r�patcherr�r�s&   r�test_filter_dir�MockTest.test_filter_dirBsi���,�,�t�\�5�9���
�
��	���D�F��$�E��S��Y��J�
���S�U�J�$6�7��L�L�N��G�L�L�N�s�AB�B'c��[2o]UOmUOQ[	U22U;UOQ[	U22P!)r�r)rrrhr�r�rlrrs& r�,test_dir_does_not_include_deleted_attributes�5MockTest.test_dir_does_not_include_deleted_attributesOs@���v��"#��
�
���
�
�g�s�4�y�)��J�����#�d�)�,r!c��[QQ5oUOUOQ2[QQ5oUOUOQ2Q[Q]!Q[2-o[Q-U@oUO[U2UOUOO
2]!2UOUO[2[2oUOQ-U@UO[U2UOUOO
2]!2UOUO[2P!)r�r(r�zfoo.bar.return_valuer�r$)	rrer�r
�KeyErrorr�r�rQ�configure_mock)rrr�s&  r�test_configure_mock�MockTest.test_configure_mockXs�������������5�)��U�#��������5�)���+A�2����&���~�f�~�����(�D�)�����������,����d�h�h�	�2��v�����%�f�%����(�D�)�����������,����d�h�h�	�2r!c���UOU29^tt^2oUU-U@PPP2[WO2oUOVr2P!)%fhK89hr#)r��strrRre)rrR�message�funcr�r��contextrcs&&&&*,  r�assertRaisesWithMsg�MockTest.assertRaisesWithMsgmsN��
�
�
�y�
)�
)�W��$�!�&�!�*��'�#�#�$������&�*�
)�s�
A�A%	�A%	c��[2oQoQoQoUO[VCU1*UO]Q]QQ5UO]Q]QQ5UOOUOO
,oSFD-oQoQoQoUO[VCU1*U]Q]QQ5J/	SFD*oQoQ	oQoUO[VCU1*UQQ5J,	SFD+oQoQ
oQoUO[VCU1*U]]]2J-	SFD(oQoQoQoUO[VCU1*U2J*	P!)znot called.zmock(1, '2', 3, bar='foo')z2expected call not found.
Expected: %s
  Actual: %s�2r�r�r(zfoo(1, '2', 3, foo='foo')zfoo(1, '2', 3, bar='foo')zfoo(bar='foo')zfoo(1, 2, 3)zfoo())rr�rBr�r�rk)rr�actual�expectedr��	assertersr;s&      r�'test_assert_called_with_failure_message�0MockTest.test_assert_called_with_failure_messageus}��� ����/��H��� � ��G��&8�8��#�#�Q��Q�E�	!�	
�
	
����C���&�
�H�H�'�'����)I�)I�
�	��D�0�F�2�H�L�G��$�$���V�*<� <��a��a�U�
%�
�	��D�0�F�'�H�L�G��$�$���V�*<� <��%�
%�
�	��D�0�F�%�H�L�G��$�$���V�*<� <��a��A�
�	��D�0�F��H�L�G��$�$���V�*<� <�d�
�	r!c
�<�[2oUOUO,6HP	2[2oU2PQ-1,oUOUOU2UO2UO[O22UOUOU2UOUOOPQ-1,2[2oU2O	]]]]]Q5PQ-1QQ
[]]Q51,oUOUOU2UOUOOOPQ
[]]Q51,2UOUOOQQ
[]]Q51,2[2oU2OO2O2PQ-1QQ-1QQ-1,oUOUOU2UOU2O[OO2O2O22[2[QQ51FCD�o[Q-U@o[UO2QQ-1,oUOUOU2[Q-U@oUO22Q	Q-1Q
Q-1,oUOUOU2UOUO2O[
2,2[Q-U@oU]2]2]2UOUO[
]2]2]2O22UOU2O[
]2]2O22UOU22O[
]2O22[Q-U@oU]2]2]2OOO]2UOUO[
]2]2]2OOO]2O22UOU2O[
]2]2OOO]2O22UOU22O[
]2OOO]2O22[Q-U@o[U2OO2O22QQ-1oUOUOP*U2UOU2O[OO2O2O!2O22UOU2OO2O[O2O!2O22UOU2OO2OO[
2O!2O22CJ�	P!)TrAz().foor�z
().foo.barz().foo.bar().bazr�r�zfoo.__int__r7za()z().foo.bar().baz().__int__r$r�)r
rQrrer�rJr�dictrhr�r��	call_listrir7r8r9�__int__)rrr�r��	last_calls&    r�test_mock_calls�MockTest.test_mock_calls�s1���{��	
�
�
�d�o�o��+�T�2��{������R�L�>��������(�3����
�������
�#�������(�3�������,�,��B��|�n�=��{����
�
�1�a��a�1�
�%�
��R�L�8�Y��q�A��?�
��	
������(�3�����*�*�.�.�9�9��y�$��a�.�9�:�	<�����*�*�5�5� �)�T�A��^�<�=�	?��{����
�
�������
��R�L�<��R�0�
��R�(�
��	
������(�3������*�*�������+�+�-�7�7�9�	;��f�d��.�.�F��&�v�&�D�����M�&��B�/�0�H����T�_�_�h�7��&�v�&�D��F�F�H�J��b�"�
��r�2��7�H����T�_�_�h�7����T�V�V�X�0�0�4�6�(�;��&�v�&�D���G�A�J�q�M����T�_�_�d�1�g�a�j��m�.E�.E�.G�H����T�V�.�.��Q���
�0D�0D�0F�G����T�V�X�0�0�$�q�'�2C�2C�2E�F��&�v�&�D���G�A�J�q�M�O�O������"����T�_�_�!�!�W�Q�Z��]�_�_�.�.�0�0��3�=�=�?�
A����T�V�.�.�!�!�W�Q�Z�\�\�^�^�-�-�a�0�:�:�<�
>����T�V�X�0�0�!�!�W�Y�Y�[�[�]�]�1�-�7�7�9�
;��&�v�&�D����
�
��� �$�$�&�'�5�r�2�>�I����T�_�_�R�0�)�<����T�V�.�.�!�X�X�\�\�^�/�/�1�9�9�;�E�E�G�
I����T�V�Z�Z�^�^�-�8�8�!�X�X�Z�/�/�1�;�;�=�
?����T�V�Z�Z�^�^�-�1�1�<�<�!�V�^�^�-�7�7�9�
;�G/r!c�"�[2oU2oUO2UOUO[	2[	2O2,2UOUO[O2,2P!r#)r�wibblererr)rrGr�s&  r�test_child_mock_call_equal�#MockTest.test_child_mock_call_equal�sZ���F������
�
������������
�
��'@�A�����*�*�T�[�[�]�O�<r!c�L�[2oUO2O2UOUO]*[
O2O
22UOUO]*[
O22P!r8)rr�rYr�rrr�rerFs& r�test_mock_call_not_equal_leaf�&MockTest.test_mock_call_not_equal_leafs`���F��	����������A�L�L��O�T�X�X�Z�-A�-A�-C�D�������a��$�(�(�*�5r!c�L�[2oUO2O2UOUO]*[
O2O22UOUO]*[
O22P!r8�rr�r�r�rrr�rFs& r�!test_mock_call_not_equal_non_leaf�*MockTest.test_mock_call_not_equal_non_leafs[���F��	������
����A�L�L��O�T�X�X�Z�^�^�-=�>����A�L�L��O�T�X�X�Z�8r!c���[2oUO]Q5O2UOUO]*[
O]Q5O22P!)r�r�)rr�r�rerrrFs& r�2test_mock_call_not_equal_non_leaf_params_different�;MockTest.test_mock_call_not_equal_non_leaf_params_differentsF���F��	�����
����������a��$�(�(�Q�-�*;�*;�*=�>r!c���[2oUOO2UOUO]*[
OO22P!�rr�rFs& r�&test_mock_call_not_equal_non_leaf_attr�/MockTest.test_mock_call_not_equal_non_leaf_attrs8���F��	���	�	�����A�L�L��O�T�X�X�\�\�^�<r!c���[2oUOO2UOUO]*[
O2O22P!r�)rr�r�r�rrrFs& r�2test_mock_call_not_equal_non_leaf_call_versus_attr�;MockTest.test_mock_call_not_equal_non_leaf_call_versus_attr s;���F��	���	�	�����A�L�L��O�T�X�X�Z�^�^�-=�>r!c��[2oUO2O2OO	2UO[
UO]*2Q2UO[
UO]*2Q2UO[
UO]*2Q2P!)rz
call.foo()zcall.foo().bar()zcall.foo().bar().baz.bob())rr�r�r�rirer�rrFs& r�test_mock_call_repr�MockTest.test_mock_call_repr&s����F��	������
����������a�l�l�1�o�.��=�����a�l�l�1�o�.�0B�C�����a�l�l�1�o�.�0L�Mr!c��[2oVm[UO22UO[UO22Q2P!)z<Mock name='mock\(\)' id='\d+'>)rr�r��assertRegexrFs& r�test_mock_call_repr_loop�!MockTest.test_mock_call_repr_loop.s6���F�����Q�U�U�W�
�����a�e�e�g��(J�Kr!c�j�[2oUO[2,UO72P!r#)rrcrrrFs& r�test_mock_calls_contains�!MockTest.test_mock_calls_contains5s$���F�����$�&��Q�\�\�1�2r!c�,�QQ[2oU2oUOUOU2UOU2U2QQ[2oU2oUOUOU2UOU2U2P!)c��\sQsQsQsP!)�+MockTest.test_subclassing.<locals>.Subclassi;r$r�r$r!r�Subclassr�;r�r!r�c�(`�\sQsQsnQsQsUsP!)r�iBc��[Q-U@!)Nr$)r)rr�s&,r�_get_child_mock�;MockTest.test_subclassing.<locals>.Subclass._get_child_mockCs���~�f�~�%r!r$)r*r+r,r-r�r/r0r1s@rr�r�Bs����
&�
&r!)rrQr��assertNotIsInstance)rr�rs&  r�test_subclassing�MockTest.test_subclassing:sx��	�t�	��z�����d�h�h��1����d�f�h�/�	&�t�	&��z��� � ����8�4�� � ����2r!c�`�[2[2[2[2,oU1QkoSFD�oUU2[	U2%c3U2U]]2U]Q5UO
2UU2UO2UOO]]Q5UO]2O2O]2UO
2UU2J�	P!)c�:�QoSFDLo[V2oROU[2ROU[2RO	U,2JN	P!)rj)rjrkr)r�rQrrIre)r�namesr��attrrs&   �r�assert_attrs�-MockTest.test_arg_lists.<locals>.assert_attrsSsL���B�E����t�*���%�%�d�I�6��%�%�d�D�1�� � ��r�*�	r!rX)	rr
rr
�callabler r�r�r�)rr�r�rsf   r�test_arg_lists�MockTest.test_arg_listsKs�����F��K��� �"�	
��	+��D������~�~����Q��
��q�	����!��T�"��H�H�J��H�H�L�L��a�L� ��H�H�Q�K�O�O��!�!�!�$��O�O�����!r!c�f�[2oU]]Q5U]]Q5UO[UO2]2UOUOOQ2UOUOO
[
]Q52Q[
]Q51Q[
]Q51,o[V!O2FD`vq4UO[U2]2UOU]*U]*2UOU]*U]*2Jb	P!)r�rX�r8rrr8)	rre�lenrir�r�r��ziprj)rr�
expected_listr�ris&    r�test_call_args_two_tuple�!MockTest.test_call_args_two_tuplens����v���Q�!���Q�!������T�^�^�,�a�0�������,�,�d�3�������.�.��q�	�:���q�	�*�T�4�!�9�,=�>�
�#&�}�6I�6I�#J��H����S��^�Q�/����X�a�[�)�A�,�7����X�a�[�)�A�,�7�$Kr!c���[[,QN2Q5oUOU2U2U2,,QN2UO[U2[,QNQ5oUOU2U2U2,,QN2UO[U2[QQ5oUOU2U2U2,,QN2UO[U2QQ[2o[UQ5oUOU2U2[[2Q5oUOU2U2U2U2,,QN2UO[U2P!)	r�r��ghic��\sQsQsQsP!)�/MockTest.test_side_effect_iterator.<locals>.Fooi�r$r�r$r!rr+r�r�r!r+r�r�)�g�h�ir)	rrrer�r�r
rNrQr)rrr+s&  r�test_side_effect_iterator�"MockTest.test_side_effect_iterator~s����Y��0�����$�&�$�&�$�&�1�9�=����-��.��_�5�����$�&�$�&�$�&�1�?�C����-��.���&�����$�&�$�&�$�&�1�?�C����-��.�	�&�	��S�)�����d�f�c�*����'�����$�&�$�&�$�&�$�&�9�5�	7����-��.r!c��[[1FDto[][]1oUUQ5oUO	[U2UOU2]2UO	[U2UOU2]2Jv	P!)r�r�)rr
r�r�r�re)r�Klass�iterablerGs&   r�$test_side_effect_iterator_exceptions�-MockTest.test_side_effect_iterator_exceptions�sl���9�_�E�"�A�x��3�H��(�+�A����j�!�,����Q�S�!�$����h��*����Q�S�!�$�
%r!c���[2o[,QN2UmUOU2U2U2,,QN2UO	[
U2UOoUO
U[[,222,QNUmUOU2U2U2,,QN2UO	[
U2UOoUO
U[[,222[2oV1mUOU2U2U2U2,,QN2UO	[
U2UOUOU2P!)r�r�r�r)
rrr�rer�r�rQr�rrQ)rrr��	this_iters&   r�!test_side_effect_setting_iterator�*MockTest.test_side_effect_setting_iterator�s���v���	�?������$�&�$�&�$�&�1�9�=����-��.��&�&�����k�4��R��>�:�*������$�&�$�&�$�&�1�?�C����-��.��&�&�����k�4��R��>�:��F�	�$�����$�&�$�&�$�&�$�&�9�5�	7����-��.��
�
�d�&�&�	�2r!c��[]Q5o[][,2UmUO	U2U2,]],2P!)r�rv)rrrr�rerrs& r�!test_side_effect_iterator_default�*MockTest.test_side_effect_iterator_default�s:����#����G��-������$�&�$�&�)�A�q�6�2r!c���[2oU]]2U]Q5U]]2U]Q5U]Q5[]]2Q]-1QQQ]-1Q
PQ]-1PQ	-1PQQ]-1,oSFDoUOU,P	Q5J	[]Q2[]Q5[2]PQ1FD'oUO[UOU,P	Q5J)	[]]2[]Q5,[]]2[]]2,[]Q5[]Q5,,oSFDoUOUP	Q5J	[]Q5[]Q5[]Q5,[]]2[]]2,[]]2[]]2[]]2,[]Q5[]]2[]Q5[]]2[]Q5,,oSFD&oUO[UOUP	Q5J(	P!)r�rXr�r7��	any_orderr�r��)r��r$�r�r�)�r)rr�assert_has_callsr�rB)rr�kalls�kall�
kall_lists�	kall_lists&     r�test_assert_has_calls_any_order�(MockTest.test_assert_has_calls_any_order�s����v���Q��
��q�	��Q��
��q�	��q�	�
��A�J�#�q�����S�!�H�~��2��Q�x�.�
����r�2��Q�x�0�	
���D��!�!�4�&�D�9����C�L�$��)�T�V�Q��e�C�D������ 5� 5���$�
�
�D��!�Q�Z����#�
�!�Q�Z��a���$�
�A�Y��q�	�"�
�
�$�I��!�!�)�t�<�$��A�Y��q�	�4�!�9�-�
�!�Q�Z��a���$�
�!�Q�Z��a���T�!�Q�Z�0�
�A�Y��Q��
�D�1�I�t�A�q�z�4�!�9�E�	
�
�$�I������ 5� 5��T�
�
�$r!c��[]]2Q]-1Q[]Q5PQQ]-1,o[O2[O]2,oUO[O2O]Q5O
22UO[O[2-Q5O],2O
22,o[2[21FDCoU]]2U]Q5U]]2U]Q5U]]Q5UOVA12JE	[2oUO2UO]2UO2O]Q5UO[2-Q5O],2UOVB12SFD�vqE[[U22FDnoQFDdoVVVg*oUOU2[U2]6�fJ1UO!["UO[%['U222Jf	Jp	J�	P!)	r�r7r�r8rXr(rr8r�)rr�r��extendrr�r��bamr�r�rr
rJ�ranger�rr�rBrI�reversed)	r�kalls1�kalls2r�rrr�step�theses	&        r�test_assert_has_calls�MockTest.test_assert_has_calls�s����Q��
�c�1�X�K��4�!�9��T�C��8�$�
��
�(�(�*�d�h�h�q�k�*���
�
�d�i�i�k�o�o��o�*�4�4�6�7��
�
�d�h�h�s�u�"�-�2�2�A�3�7�A�A�C�D����F�I�K�'�D���A�J��1�I���A�J��1�I���a�L��L�L�$��(�
(��v�����
�������	�	����!��������B��$�$�a�S�)�
���d�^�$� �K�D��3�u�:�&��#�D�!�A�F�O�E��)�)�%�0��5�z�A�~��)�)�*� �1�1� ��%��1��$�'�!r!c��QQ2o[U2oV"21FDkoUO]]]]Q5UO[O]]]]Q5,2UO[O]]]]2,2Jm	UO	2V"21FD�oUO[UO[O2,2UO]2O]]2UO[O]2[O]2O]]2,2UOO[]2[2O]]2,2J�	UO	2[O]2[O]2[O2O]2[O2O]]]]2,oSFD%oUO[UOU,2J'	P!)c�F`�\sQsQsnQsQQksQQ2sQsUsP!)�=MockTest.test_assert_has_calls_nested_spec.<locals>.Somethingic��P!r#r$rs&rr�FMockTest.test_assert_has_calls_nested_spec.<locals>.Something.__init__rMr!c��P!r#r$r6s&&&&&rr;�BMockTest.test_assert_has_calls_nested_spec.<locals>.Something.meths��Tr!c�.`�\sQsQsnQsQsQsUsP!)�AMockTest.test_assert_has_calls_nested_spec.<locals>.Something.Fooic��P!r#r$r's&&rr�JMockTest.test_assert_has_calls_nested_spec.<locals>.Something.Foo.__init__���tr!c��P!r#r$)rr7r8s&&&r�meth1�GMockTest.test_assert_has_calls_nested_spec.<locals>.Something.Foo.meth1r9r!r$)r*r+r,r-rr;r/r0r1s@rr+r6s����+�+�+r!r+r$r#)	r*r+r,r-rr;r+r/r0r1s@rr4r0s����$�1�
,�
,r!r4�r:)
rr;rrr r�rBr+r;�non_existent)rr4�
mock_classrG�
invalid_callsrs&     r�!test_assert_has_calls_nested_spec�*MockTest.test_assert_has_calls_nested_specs���	,�	,�%�Y�/�
��j�l�+�A�
�F�F�1�a��a�F� �
����	�	�!�Q��Q� 7�8�9�
����	�	�!�Q��1� 5�6�7�,�
	�����j�l�+�A����n�a�.@�.@�4�8�8�:�,�O�
�E�E�!�H�N�N�1�a� �
��������T�X�X�a�[�->�->�q�!�-D�E�F�
�E�E�"�"�D��G�T�V�\�\�!�Q�-?�#@�A�	,�	�������1���*�*�1�-�����0�0��3��������A�q�!�4�6�
�
"�D����n�(�9�9�#�f�
�"r!c�v�[2oU2O2O2O2UO	2O2O
2[O2O2O
2O2oUOU2P!r#)
r
r�r�r�r�r��threerr�r)rrG�callss&  r�)test_assert_has_calls_nested_without_spec�2MockTest.test_assert_has_calls_nested_without_spec6sm���K��	����	�
�
�����	������
�������
��� �&�&�(�2�2�4��	���5�!r!c�"�Q	Qko[UQ5oU]]]Q5U]]]]Q5U]
]]Q5PQ
-1PQQ]-1Q-1,oUOU2UOUP	Q5UOUQ*2UOUQ*P	Q5UOUPP2UOUPPP	Q5[[U22oUO	[
29^tt^2UOU2PPP2UOUP	Q5UO	[
29^tt^2UOUQ*2PPP2UOUQ*P	Q5UO	[
29^tt^2UOUPP2PPP2UOUPPP	Q5P!)%fhK�9h)%fhK�9h)%fhKO9h)
Nc��P!r#r$rBs&&&&rr{�<MockTest.test_assert_has_calls_with_function_spec.<locals>.f?rMr!r�rN�r9r:)r9r:r:r�NNr#r�)r�r�)�
��)rrrIr'r�rB)rr{rrEs&   r�(test_assert_has_calls_with_function_spec�1MockTest.test_assert_has_calls_with_function_spec>s���$���|���Q�!�q���Q��Q�!���R��r��
��B��
��S�!�H�%�
�2����
	
���e�$����e�t�4����e�B�i�(����e�B�i�4�8����e�C�R�j�)����e�C�R�j�D�9��X�e�_�%��
�
�
�~�
.�
.��!�!�%�(�/����e�t�4�
�
�
�~�
.�
.��!�!�%��)�,�/����e�B�i�4�8�
�
�
�~�
.�
.��!�!�%���*�-�/����e�C�R�j�D�9�/�
.��/�
.��/�
.�s6�;G�G+�!G>�G(	�!G(	�+G;	�4G;	�>H	�H	c	�$�QQko[UQ5oU]2UO[29^tt^2oUO[	2,2PPP2UO[
WO2Q2UOUOO2[2oUO[29^tt^2oUO[	2,2PPP2UO[
UO2Q2UOUOO2UO[29^tt^2oUO[	2[	]]2,2PPP2UO[
UO2Q2UOUOO[2P!)%fhCK�9h)%fhCK9h)%fhK�9h)Nc��P!r#r$r�s&rr{�AMockTest.test_assert_has_calls_not_matching_spec_error.<locals>.f^���tr!r�z7Calls not found.
Expected: [call()]
  Actual: [call(1)]z0Calls not found.
Expected: [call()]
  Actual: []z�Error processing expected calls.
Errors: [None, TypeError('too many positional arguments')]
Expected: [call(), call(1, 2)]
  Actual: [call(1)]r#)rr�rBrrrer�rRrnrSrQr�)rr{rrU�
uncalled_mocks&    r�-test_assert_has_calls_not_matching_spec_error�6MockTest.test_assert_has_calls_not_matching_spec_error]sn�����|���Q��
�
�
�~�
.�
.�"��!�!�4�6�(�+�/�����R�\�\�*�
"�	
�
	
���"�,�,�0�0�1���
�
�
�
�~�
.�
.�"��*�*�D�F�8�4�/�����R�\�\�*�
�	
�
	
���"�,�,�0�0�1�
�
�
�~�
.�
.�"��!�!�4�6�4��1�:�"6�7�/�����R�\�\�*�
"�	
�	
���b�l�l�4�4�i�@�7/�
.�
.��/�
.�
.��/�
.�s5�G�
G+�'G?�G(	� G(	�+G<	�4G<	�?H	�H	c��[2oU]]2U]Q5U]]Q5UO]]2UO]Q5UO]]Q5UO[UO2UO[UO]]2UO[UO]Q5P!)r�rXr�)r�assert_any_callr�rBrrs& r�test_assert_any_call�MockTest.test_assert_any_call�s����v���Q��
��q�	��Q�!�����Q��"����q�!����Q�!�$������ � �	
�	
����� � �
�q�	
�
	
����� � ��	�	
r!c�4�QQko[UQ5oU]]]Q5U]]]]Q5UO]]]2UO]]]Q5UO]]]]2UO]]]]Q5UO[UO]]]Q5UO[29^tt^2oUO]Q5PPP2UO	WO
O[2P!)%fhK<9h)	Nc��P!r#r$rBs&&&&rr{�;MockTest.test_assert_any_call_with_function_spec.<locals>.f�rMr!r�rNrKr�rBrOr#)rrZr�rBrQrRrSr�rTs&   r�'test_assert_any_call_with_function_spec�0MockTest.test_assert_any_call_with_function_spec�s���$���|���Q�!�q���Q��Q�!�����Q��1�%����q�A��+����Q��1�a�(����q�A��a�0����.�$�*>�*>��q�A�	�	'��
�
�~�
.�
.�"�� � �1�%�/����b�l�l�4�4�i�@�/�
.�s�?D�D	�D	c
�
�Qo[2oVm[U2[U2O,oSFDGoU]]2U]]2UOUO[]]2[]]2,2JI	P!)c��P!r#r$rAs&&rr{�3MockTest.test_mock_calls_create_autospec.<locals>.f�s��Tr!)rr{rrerr)rr{r-�funcsr�s&    r�test_mock_calls_create_autospec�(MockTest.test_mock_calls_create_autospec�sv����f����
�A���C� �"�"�
���D���A�J���A�J�������$�q�!�*�d�1�a�j�!9�
�	r!c�~�[O[2QQ5oUOQ[	U22P!)�
sweet_funcr�)rrrNr�r�rFs& r�test_create_autospec_with_name�'MockTest.test_create_autospec_with_name�s(��� � ����=���
�
�l�D��G�,r!c
�8�QQ2oQFDsoUOUQ59^tt^2[O[V22oU2UO	2UO[UQ2PPP2Ju	P!)%fhJ�9h)c�B`�\sQsQsn\Q2s\Q2sQsUs	P!)�MMockTest.test_create_autospec_classmethod_and_staticmethod.<locals>.TestClassi�c��P!r#r$�r>s&r�class_method�ZMockTest.test_create_autospec_classmethod_and_staticmethod.<locals>.TestClass.class_method�s��#'r!c��P!r#r$r$r!r�
static_method�[MockTest.test_create_autospec_classmethod_and_staticmethod.<locals>.TestClass.static_method�s��!%r!r$)
r*r+r,r-rErqrFrtr/r0r1s@r�	TestClassrn�s!����
�'��'�
�%��%r!rv)r��	extra_arg)rqrt)�subTestrrr�rkr�r�)rrvr��mock_methods&   r�1test_create_autospec_classmethod_and_staticmethod�:MockTest.test_create_autospec_classmethod_and_staticmethod�ss��	&�	&�8�F����V��,�,�"�2�2�7�9�3M�N���
��3�3�5��!�!�)�[�+�F�	-�,�8�,�,�,�s�AB	�B
�B
c�@�QQko[OU2P!)c�D�U]6�cPgQ[[Q1*QP-!)r�r�.�return)�Tupleri)ras"r�__annotate__�OMockTest.test_create_autospec_type_hints_typechecking.<locals>.foo.__annotate__�s"��	�	�5��c��?�	�t�	r!c��P!r#r$r�s&rr��BMockTest.test_create_autospec_type_hints_typechecking.<locals>.foo�s��r!)rr)rr�s& r�,test_create_autospec_type_hints_typechecking�5MockTest.test_create_autospec_type_hints_typechecking�s��	�	
���S�!r!c���[2oQoUO[U29^tt^2UO2PPP2UO[U29^tt^2UO	2PPP2UO[U29^tt^2UO2PPP2UO[U29^tt^2UO
2PPP2UO[U29^tt^2UO2PPP2UO[U29^tt^2UO2PPP2UO[U29^tt^2UO2PPP2UO[U29^tt^2UO2PPP2QQ[2o[UQ5oUO2UO2UOO2UOO2[P	Q5oUO2UO	2UO2UO
2UO2UO2UO2UO2P!)%fhCK�9h)%fhCKl9h)%fhCKI9h)%fhCK&9h)%fhCK9h)%fhCK�9h)%fhCK�9h)%fhCK�9h)z1is not a valid assertion. Use a spec for the mockc�.`�\sQsQsnQsQsQsUsP!)�&MockTest.test_mock_unsafe.<locals>.Fooi�c��P!r#r$rs&r�called_once�2MockTest.test_mock_unsafe.<locals>.Foo.called_once�s��4r!c��P!r#r$rs&r�	has_calls�0MockTest.test_mock_unsafe.<locals>.Foo.has_calls�s��r!r$)r*r+r,r-r�r�r/r0r1s@rr+r��s����'�%�%r!r+r�)�unsafe)
rr�r��assert_foo_call�assret_foo_call�asert_foo_call�aseert_foo_call�assrt_foo_call�called_once_withr�r�rN�assert_called_once)rrGrcr+s&   r�test_mock_unsafe�MockTest.test_mock_unsafe�s(���F��A��
�
#�
#�N�C�
8�
8�
����9�
�
#�
#�N�C�
8�
8�
����9�
�
#�
#�N�C�
8�
8�
����9�
�
#�
#�N�C�
8�
8�
����9�
�
#�
#�N�C�
8�
8�
����9�
�
#�
#�N�C�
8�
8�
��� �9�
�
#�
#�N�C�
8�
8�
�M�M�O�9�
�
#�
#�N�C�
8�
8�
�K�K�M�9�	&�&�	&�

�c�N��	�
�
��	���
�	�
�
�(�(�*�	���&�&�(�����	����	����	����	����	����	�
�
��	����	���
�K9�
8�
8��
8�
8�
8��
8�
8�
8��
8�
8�
8��
8�
8�
8��
8�
8�
8��
8�
8�
8��
8�
8�
8�s��K�#K�K+�K?�L�?L'�6L;�-M�K	�K	�K(	� K(	�+K<	�4K<	�?L	�L	�L$	�L$	�'L8	�0L8	�;M	�M	�M 	�M 	c���QQ[2o[UQ5oUO2UO2UOO	2UOO	2P!)c�.`�\sQsQsnQsQsQsUsP!)�.MockTest.test_mock_safe_with_spec.<locals>.Fooic��P!r#r$rs&r�
assert_bar�9MockTest.test_mock_safe_with_spec.<locals>.Foo.assert_bar���$r!c��P!r#r$rs&r�
assertSome�9MockTest.test_mock_safe_with_spec.<locals>.Foo.assertSome	r�r!r$)r*r+r,r-r�r�r/r0r1s@rr+r�s����&�&�&r!r+r�)rNrr�r�r��rr+rGs&  r�test_mock_safe_with_spec�!MockTest.test_mock_safe_with_specsK��	'�&�	'�

�c�N��	����	����	���'�'�)�	���'�'�)r!c��[2oUOO2UO2UO[29^tt^2UOO2PPP2P!)%fhP!9hr#)r�hello�assert_not_calledr�rBrFs& r�test_assert_not_called�MockTest.test_assert_not_calledsR���F��	���!�!�#�	���	�
�
�
�~�
.�
.�
�G�G�%�%�'�/�
.�
.�
.�s�A8�8B		�B		c��[2oU]]2UO[[OQ2UO
2P!)r�zCalls: [call(1, 2)])rr�rBrtrur�rFs& r�test_assert_not_called_message�'MockTest.test_assert_not_called_messages8���F��	�!�Q�����~��I�I�+�,�
���	!r!c�j�[2oUO[29^tt^2UOO	2PPP2UO2UOO	2UO2UOO	2P!)%fhKf9hr#)rr�rBr�rbrFs& r�test_assert_called�MockTest.test_assert_called!sj���F��
�
�
�~�
.�
.�
�G�G�!�!�#�/�	���	�	������	���	�	������
/�
.�s�B"�"B2	�+B2	c���[2oUO[29^tt^2UOO	2PPP2UO2UOO	2UO2UO[29^tt^2UOO	2PPP2P!)%fhK�9h)%fhP!9hr#)rr�rBr�r�rFs& r�test_assert_called_once� MockTest.test_assert_called_once+s����F��
�
�
�~�
.�
.�
�G�G�&�&�(�/�	���	�	���"�"�$�	���	�
�
�
�~�
.�
.�
�G�G�&�&�(�/�
.�
/�
.��/�
.�
.�s#�C�#C�C	�C	�C,	�$C,	c��[2oU]]2U]2UO[[OQ2UO
2P!)r�zCalls: [call(1, 2), call(3)])rr�rBrtrur�rFs& r�test_assert_called_once_message�(MockTest.test_assert_called_once_message6s?���F��	�!�Q��	�!�����~��I�I�4�5�
� � �	"r!c��[2oUO[29^tt^2oUO2PPP2UO	Q[WO22P!)%fhK79h)NzCalls:)rr�rBr�rlr�rR)rrGrPs&  r�*test_assert_called_once_message_not_called�3MockTest.test_assert_called_once_message_not_called>sO���F��
�
�
�~�
.�
.�!�
� � �"�/�����3�q�{�{�#3�4�/�
.�s�A)�)A9	�2A9	c��[2oUOQQQ5QoUO[UOO2U2P!)r��hero)r��daddyz call(name='hello', daddy='hero'))rr�rer�ri)rrG�texts&  r�test_ordered_call_signature�$MockTest.test_ordered_call_signatureEs=���F��	���W�F��+�1������a�g�g�/�/�0�$�7r!c�D�[O2o[O]�Q2o[2oUO2UO]�Q2UO	UO
]*U2UO	UO
]*U2P!)�r�)rr�r$rrerk)rr9rrGs&   r�test_override_tuple_methods�$MockTest.test_override_tuple_methodsLsm���J�J�L���J�J�s�7�#���F��	���	�	����G���������*�A�.��������*�A�.r!c���[]
]],Q5oUOP	P	Q5UOUO[2UO	UO
P2P!)rM�rhr�)rr rQrhrer�rFs& r�test_reset_return_sideeffect�%MockTest.test_reset_return_sideeffectUsJ���b�q��e�4��	���$�D��9����a�n�n�d�3��������-r!c���[]
]],Q5oUOP	Q5UOUO[2UO	UO
P2P!)rMr�rv)rr rQrhr�r�rFs& r�test_reset_return�MockTest.test_reset_return[sH���b�q��e�4��	���$��'����a�n�n�d�3����A�M�M�4�0r!c��[]
]],Q5oUOP	Q5UOUO]
2UOUOP2P!)rMr�r�)rr rerhr�rFs& r�test_reset_sideeffect�MockTest.test_reset_sideeffectasH���b�q�!�f�5��	�����&��������,��������-r!c���[[]Q5Q5oUOUO2]2UOP	Q5UO	UO2]2P!)r�rv�r{)r
rer{r r�rFs& r�test_reset_return_with_children�(MockTest.test_reset_return_with_childrengsK���	�q�1�2����������"�	���$��'����A�C�C�E�1�%r!c���[[]],Q5Q5oUOUOOP2UO	P	Q5UOUOOP2P!)r�r�r�)r
r�r{r�r rerFs& r�+test_reset_return_with_children_side_effect�4MockTest.test_reset_return_with_children_side_effectmsS���	�q�!�f�5�6�����A�C�C�O�O�T�2�	�����&���������$�/r!c�`	�QQ[2oQQ[2oQQ[2n	[[[[,o[U2FD3oUO
U1U	1Qkk2UO
U1U	1Qkk2J5	SFCD{o[2[P	Q51FCD[oU2oUOUOUO1V1Q	,Q
,11FCDvqx[2[P	Q51FD�oUOU1-U@UOUO[[UQ
2UO[[UQ2QU7cUO[[UQP2UOU1-U@UO[[UQ	2UOUO[[UQ2QU7fJ�UO[[UQP2J�	CJ!	CJ^	CJ~	P!)
c��\sQsQs]sQsP!)�)MockTest.test_mock_add_spec.<locals>._Oneitr$�r*r+r,r-r�r/r$r!r�_Oner�t����Cr!r�c��\sQsQs]sQsP!)�)MockTest.test_mock_add_spec.<locals>._Twoivr$)r*r+r,r-r�r/r$r!r�_Twor�vr�r!r�c�$�\sQsQsQ9s9ssQsP!)�-MockTest.test_mock_add_spec.<locals>.Anythingix�fourr$)r*r+r,r-r�r�rDr/r$r!r�Anythingr�xs�� &�&�C�&�#�r!r�c�:�URQ5!)r�r$��Kr�s&�rrl�-MockTest.test_mock_add_spec.<locals>.<lambda>s
���1�(�+;r!c�:�URQ5!)r�r$r�s&�rrlr��s
���1�h�+?r!r�r�r�rDr�)rNrr
rr
rIrJr�r�r�rD�
mock_add_specr�r�r��setattr)
rr�r��klassesr
r�r�One�Twor�s
&        @r�test_mock_add_spec�MockTest.test_mock_add_specss����	�6�	�	�6�	�	'�v�	'�
�)�_�.B�
���'�]�E��N�N�E�;�<��N�N�E�?�@�#��E��&�$��"5�5���w�����$�(�(�D�J�J�.�"&����%��/A� B�H�C�"&�&�$��*=�"=���*�*�3�9�&�9�����)�)�*�G�T�5���)�)�*�G�T�7��&��/� �-�-� .���w����*�*�3�9�&�9��)�)�*�G�T�5������)�)�*�G�T�7��&��/� �-�-� .���w���1#>�!C�6�r!c�`�[[1FD�oU2n[R2RO[2UO[[R2U2nRQ*]ROmRO[2UO[R2]2UO[U1Qk2J�	P!)r�c�:�RQ*!r(r$rs�rrl�;MockTest.test_mock_add_spec_magic_methods.<locals>.<lambda>�s	����e�r!)
r
r
rir�rNr�r�r�rhre�rr
rs& @r� test_mock_add_spec_magic_methods�)MockTest.test_mock_add_spec_magic_methods�s����� 4�4�E��7�D���I����v�&����i��d�3��7�D���K�'(�D�L�L�%����s�#����S��Y��*����i�)<�=�5r!c���[[[[[1FCDPoU2o[2UmUO
2UO
UO[O
2,2UO
UO[O
2,2U2o[QQ5Um
UO2UO
UO,2UO
UO,2U2o[22UmUO2UO
UO,2UO
UO,2CJS	P!)r�r�)rrr
r
rr�rerkrrr�r�r�s&  r�test_adding_child_mock�MockTest.test_adding_child_mock�s���%�t�Y�8L��!�E��7�D��v�D�H��H�H�J����T�.�.������=����T�_�_�t�x�x�z�l�;��7�D���(�D�H��H�H�J����T�.�.��3����T�_�_�b�1��7�D� �{�}�D�H��H�H�J����T�.�.��3����T�_�_�b�1�+!r!c���[[1FDXoU2o[2UmU22UOUO[2[22,2JZ	P!r#)rr
rhrerrr�s&  r�test_adding_return_value_mock�&MockTest.test_adding_return_value_mock�sG���9�_�E��7�D� )��D���F�H����T�_�_�t�v�t�v�x�.@�A�%r!c�R�QQ[2o[2o[OUQ2o[OUQ2oUO2oUO	UO
2UO2oUO	UO
2UO
UQ2UO
UQ2UO2UO2UOUO[O2[O2,2P!)c� �\sQsQsQsQsQsP!)�'MockTest.test_manager_mock.<locals>.Fooi�r�r�r$)r*r+r,r-r�r�r/r$r!rr+r��s���C��Cr!r+r�r�)rNrrr�rgr��attach_mockr�r�rerr)rr+�manager�p1�p2�mock_one�mock_twos&      r�test_manager_mock�MockTest.test_manager_mock�s���	�&�	��&��
�\�\�#�u�
%��
�\�\�#�u�
%���8�8�:�������� ��8�8�:�������� ����H�e�,����H�e�,����	����	�����+�+�d�h�h�j�$�(�(�*�-E�Fr!c�n�[[1FD�oU2o[]Q5Um[QQ5Um[	U2[U2UO
UO[O2[O2,2UO
UO,2J�	P!)r�rvg@)
rr
r��	__float__ri�floatrerrrk)rr
rGs&  r�test_magic_methods_mock_calls�&MockTest.test_magic_methods_mock_calls�sw���9�_�E���A��!�,�A�I�#��5�A�K���F��!�H����Q�\�\�D�L�L�N�D�N�N�<L�+M�N����Q�^�^�R�0�%r!c��[OQQ5oUQ2oUO2oUQ2oUO2oUOV52P!)r��	read_data�a-namezanother-name)rr��readre)r�mocked_open�f1�f1_data�f2�f2_datas&     r� test_mock_open_reuse_issue_21750�)MockTest.test_mock_open_reuse_issue_21750�sH���n�n�v�6��
��
"���'�'�)��
��
(���'�'�)������*r!c��[OQQ5oUQ2oSTt,tFDp3MJ	ooUOU]*Q2UOU]*Q2UO[U2,2P!ttoh)zRemarkable
Norwegian Bluerr
zRemarkable
zNorwegian Blue)rr�rerI)rrr�line�liness&    r� test_mock_open_dunder_iter_issue�)MockTest.test_mock_open_dunder_iter_issuess���n�n�/K�L��
��
"��"$�%�"�$��"��%�����q��>�2�����q��#3�4�����b��2�&��&s�Bc���[OQQ5oUQ2o[U2oUO2oSTt,tFDpUMJ	ooUO	UQ2UO	UQ2UO	U]*Q2UO	[U2,2UO
[29^tt^2[U2PPP2P!ttoh)%fhP!9h)z1st line
2nd line
3rd linerr
z	1st line
z	2nd line
z3rd line)rr�r(r.rerIr�r�)rrr�line1�line2rrs&      r�test_mock_open_using_next�"MockTest.test_mock_open_using_nexts����n�n�/M�N��
��
"���R������
��"$�%�"�$��"��%������-������-�����q��:�.�����b��2�&�
�
�
�}�
-�
-���H�.�
-��&�
.�
-�
-�s�C�C�C.	�&C.	c��[OQQ5oQUOOmUO	Q[U222P!)�foo
barnr�abc)rr�rh�readlinerer()r�mopens& r�3test_mock_open_next_with_readline_with_return_value�<MockTest.test_mock_open_next_with_readline_with_return_values:������5��38����#�#�0������U�W�
�.r!c�X�[O[OQQ52o[OQU29^tt^2UOoUO
o[
Q2UmQoUO[U2PPP2P!)%fhP!9h)�JLVr�ztempfile.NamedTemporaryFilezTest 2 Errorc�P�[O2OQ2P!)�asd)�tempfile�NamedTemporaryFile�writer$r!r�attempt�.MockTest.test_mock_open_write.<locals>.attempt's���+�+�-�3�3�E�:r!)	rr�r
rrhr-�OSErrorr�r�)r�mock_namedtemp�mock_filehandle�
mock_writer.s&    r�test_mock_open_write�MockTest.test_mock_open_write ss��������E�(B�C��
�Z�Z�5�~�
F�
F�,�9�9�O�(�.�.�J�%,�^�%<�J�"�
;����g�w�/�
G�
F�
F�
F�s�AB�B)	�!B)	c�
�[OQQ5oQUOOmU2O2oU2O2oUOQU2UOQU2P!)r!rc��Q!)r"r$)r�s*rrl�8MockTest.test_mock_open_alter_readline.<locals>.<lambda>-s��ur!r")rr�rhr#r�re)rr$�first�seconds&   r�test_mock_open_alter_readline�&MockTest.test_mock_open_alter_readline+sd������5��2D����#�#�/��� � �"����!�!�#�������&������'r!c���[OQQ5oUQ2oUO2UOPUO22UOPUO22UOPUO	22UOPUO	22UO,UO22UO,UO22P!)r�rr�)rr�rrer#�	readlines)r�_openrs&  r�test_mock_open_after_eof�!MockTest.test_mock_open_after_eof3s�������/���%�L��	��������Q�V�V�X�&�����Q�V�V�X�&�����Q�Z�Z�\�*�����Q�Z�Z�\�*�����Q�[�[�]�+�����Q�[�[�]�+r!c��[[1FCD�oU2o[U2oV"mUO	U2U2UO[U2U2UO
2UO	U2U2UO[U2U2U2oUOUmUOQ[UO22UOQ[UO22UO
2UOQ[UO22UOQ[UO22U2o[U2oU2UmV"OmUO[U2U2UO[UO22U2CJ�	P!)z
name='mock.a')
rr
r�rhrQrer r7r8r�)rr
rG�
original_reprs&   r�test_mock_parents�MockTest.test_mock_parents?s:���9�_�E���A� ��G�M��N��M�M�!�#�q�!����T�!�W�m�4�
�L�L�N��M�M�!�#�q�!����T�!�W�m�4���A��#�#�A�C��M�M�/�4����9�5��M�M�/�4����9�5�
�L�L�N��M�M�/�4����9�5��M�M�/�4����9�5���A� ��G�M��#�A�C� �C�C�����T�!�W�m�4����T�!�#�#�%�[�-�8�3%r!c
�,�[[[[1oSFD�oSFD�oU2oUQQ5oUO	UQ2UOUOU2UOQ[U22UOO]2UOUO[OO]2,2UOUO[OO]2,2J�	J�	P!)r�r�r�zname='mock.bar')rr
r
rr�rQr�r�r�r�rerrrk�r�classesr
�Klass2rG�m2s&     r�test_attach_mock�MockTest.test_attach_mock\s����	�#7��H���E�!���G����'���
�
�b�%�(��
�
�a�e�e�R�(��
�
�/��b��:����	�	�!��� � ���������Q��/@�A�� � ����$�(�(�,�,�q�/�1B�C�"�r!c
��[[[[1o[[1FD�oSFD�oU2oUQQ5oUO	UQ2UOU2U2UO
Q[U22UO2UOUO[2O2O22J�	J�	P!)r�r�rhz
name='mock()')
rr
r
rr�rQr�r�r�rerrr�rGs&     r�test_attach_mock_return_value�&MockTest.test_attach_mock_return_valuems����	�#7��H���9�_�E�!���G����'���
�
�b�.�1��
�
�a�c�2�&��
�
�o�t�B�x�8������ � ����t�v�z�z�|�/E�/E�/G�H�"�%r!c���[2o[O[Q0P	Q59^tt^2oUO	UOO2Q2UO
UQ2UO]2[]2U]2[O]2[O]2[O]2,o[]2[]2[]2,oUO	UOU2UO	UOOU2UO	[OU2UO	UOU2UOQ[UOO22UO	UOO2Q2PPP2P!)%fhP!9h)�
.somethingr�rYr�
mock.child)
rrrr*re�_extract_mock_namer�rrYrrr�r�)rr�	mock_func�parent_calls�child_callss&    r�test_attach_mock_patch_autospec�(MockTest.test_attach_mock_patch_autospec}sK�����
�Z�Z�8�*�J�/�$�
?�
?�9����Y�^�^�>�>�@�+�N����y�'�2��L�L��O��a�L��a�L� �J�J�q�M�4�:�:�a�=�$�*�*�Q�-�H�L���7�D��G�T�!�W�5�K����V�.�.��=����V�\�\�4�4�k�B����Y�1�1�;�?����Y�1�1�;�?��M�M�,��V�\�\�->�->�(?�@����Y�^�^�>�>�@�,�O�@�
?�
?�
?�s�FG�G'	�G'	c�.�[O[Q0P	Q59^tt^2o[2oUO	UQ2[2oUO
]]]]Q5UO[O[O]]]]Q5,2UOO[[O]]]]Q5,2UO[[O]]]]Q5,2PPP2[O[Q0P	Q59^tt^2o[2oUO	UQ2[]2UO[O]2,2[O[]2,2UO[]2,2PPP2[O[Q0P	Q59^tt^2o[2oUO	UQ2[2oUO
]]]]Q5UO[O2[O2O
]]]]Q5,2UOO[]]]]Q5,2UO[2[2O
]]]]Q5,2PPP2P!)%fhCK�9h)%fhCK=9h)%fhP!9h)�.Something.methr��attach_methr=rQ�attach_func�
.Something�
attach_obj)rrr*rr�r4r;rrr[r9rYr\r^)r�mockedr�r-s&   r�)test_attach_mock_patch_autospec_signature�2MockTest.test_attach_mock_patch_autospec_signature�sJ��
�Z�Z�8�*�O�4�t�
D�
D���f�G�����
�6��+�C��H�H�Q��1��H�"��$�$�d�&6�&6�t�x�x��A�q�A�&N�%O�P��H�H�%�%�t�D�H�H�a��A��'C�&D�E��#�#�T�$�(�(�A�q�!�q�%A�$B�C�E��Z�Z�8�*�J�/�$�
?�
?�6��f�G�����
�6��a�L��$�$�d�&6�&6�q�&9�%:�;��&�&��Q��y�1��#�#�T�!�W�I�.�
@��Z�Z�8�*�J�/�$�
?�
?�6��f�G������5��+�C��H�H�Q��1��H�"��$�$�d�o�o�&7�&*�o�o�&7�&<�&<�Q��1��&<�&J�&L�
M��H�H�%�%�t�A�q�!�q�'9�&:�;��#�#�T�V�T�V�[�[��A�q�A�[�-F�$G�H�@�
?�#E�
D�
D��@�
?�
?��@�
?�
?�s8�CK�3BK/�*C'L�K,	�$K,	�/L	�8L	�L	�L	c��[2[2[2[21FDYoUO	UQ2U;UO
UQ2U;UO
UQ2UO[[UQ2J[	P!)rGr{)rr
r
r�
assertHasAttrrG�assertNotHasAttrr{r�r�r�rrs& r�test_attribute_deletion� MockTest.test_attribute_deletion�sq���V�Y�[�*>�*@�$�&�(�D����t�S�)����!�!�$��,����!�!�$��,����n�g�t�S�A�(r!c��[2[2[2[21FD�o]UmUOUQ2UO
UO]2U;UOUQ2]UmUOUQ2UO
UO]2U;UOUQ2J�	P!)r�r�)rr
r
rr�rcrerdrrs& r�7test_mock_does_not_raise_on_repeated_attribute_deletion�@MockTest.test_mock_does_not_raise_on_repeated_attribute_deletion�s����V�Y�[�*>�*@�$�&�(�D��D�H����t�U�+����T�X�X�q�)����!�!�$��.��D�H����t�U�+����T�X�X�q�)����!�!�$��.�(r!c	���[2[2[2[21FD-oU;UO[29^tt^2U;PPP2J/	P!)%fhJD9hr#)rr
r
rr�r�r�rrs& r�4test_mock_raises_when_deleting_nonexistent_attribute�=MockTest.test_mock_raises_when_deleting_nonexistent_attribute�sR���V�Y�[�*>�*@�$�&�(�D����"�"�>�2�2��H�3�2�(�3�2�2�s�A	�A-
�%A-
c�t�[2oP	UmU;UO2UOUQ2P!)Tr)rrr rdrrs& r�/test_reset_mock_does_not_raise_on_attr_deletion�8MockTest.test_reset_mock_does_not_raise_on_attr_deletion�s1���v����
��J��������d�G�,r!c���[2[21FDFoUOU[2[UmUOU[2UOJH	P!r#)rr
r�rirRrQr�rrs& r�test_class_assignable�MockTest.test_class_assignable�sC���F�I�K�'�D��$�$�T�3�/� �D�N��!�!�$��,��H�H�(r!c��UO[O2UO[	[O2[
2UO[	[O2O2[
2P!r#)�assertIsNotNonerr�rer�rrs&r�test_name_attribute_of_call�$MockTest.test_name_attribute_of_call�sO��	
���T�Y�Y�'�����d�i�i��%�0�����d�i�i�k�.�.�/��7r!c��UO[O2UO[	[O2[
2UO[	[O2O2[
2P!r#)rtrrrer�rrs&r�test_parent_attribute_of_call�&MockTest.test_parent_attribute_of_call�sP��	
���T�[�[�)�����d�k�k�*�E�2�����d�k�k�m�2�2�3�U�;r!c�l�Qo[2o[U2UmUO]]2UO[UO]2UOUO[O]]2,2UOQ[UOO22P!)c��P!r#r$rAs&&rr��BMockTest.test_parent_propagation_with_create_autospec.<locals>.foo�rUr!rR)rrrr�r�rerrr�r�r)rr�rs&  r�,test_parent_propagation_with_create_autospec�5MockTest.test_parent_propagation_with_create_autospec�sy����v��$�S�)��
��
�
�1�a�����)�T�Z�Z��3�������4�:�:�a��+;�*<�=��
�
�l�D������$9�:r!c��Qo[2oUO[UQQ5Q2UO]]2UO	[
UO]2UO
UOO[O]]2,2UOQ[UOO22P!)c��P!r#r$rAs&&rr��GMockTest.test_parent_propagation_with_autospec_attach_mock.<locals>.foo	rUr!r�r�rrR)rr�rrr�r�rerrr�r�r)rr�rs&  r�1test_parent_propagation_with_autospec_attach_mock�:MockTest.test_parent_propagation_with_autospec_attach_mock	s����������?�3�U�;�W�E����Q������)�V�\�\�1�5�������0�0�4�:�:�a��3C�2D�E��
�
�l�D����):�):�$;�<r!c�`	�[OOoUOQU2[OQ29^tt^2[
OQU	1Qkn	UO[
O[
O22[
OR	2]QH&G
oGoGoG
oV#VE[,oSFD&oU[Q5oUO!U[2J(	PPP2P!)%fhP!9h)c�:�[[OQU2!�r)r�r�rr�s&rrl�9MockTest.test_isinstance_under_settrace.<locals>.<lambda>	s��g�h�m�m�W�e�&Lr!zsys.modulesz
unittest.mockc�
:�R!r#r$)�frame�eventr��traces&&&�rr��6MockTest.test_isinstance_under_settrace.<locals>.trace%	s����r!)rr
rr
r�)r�rrrgr�re�modules�settrace�gettrace�
unittest.mockrr
rr
rr4rQ)
r�	old_patchrr
rr
r�rr-r�s
&        @r�test_isinstance_under_settrace�'MockTest.test_isinstance_under_settrace	s�����M�M�'�'�	�
	
���L�!�	#��Z�Z�
�
&�
&����O�,�
�
�O�O�C�L�L�#�,�,�.�9��L�L���
�
�
��	��E����	�*���%�%�c�9�5��%'�
&�
&�
&�s�B#C;�;D	�D	c�2�QQ2oU2o[OOOUQ[Q59^tt^2PPP2UO	UO
OO]2P!)%fhKB9h)c�(`�\sQsQsnQsQsUsP!)�FMockTest.test_bool_not_called_when_passing_spec_arg.<locals>.Somethingi8	c�N�[OO2UmP!r#)r�rr
�obj_with_bool_funcrs&rr�OMockTest.test_bool_not_called_when_passing_spec_arg.<locals>.Something.__init__9	s��*2�-�-�*A�*A�*C��'r!)r�)r*r+r,r-rr/r0r1s@rr4r�8	s����
D�
Dr!r4r�r�)r�rrrNrer��__bool__rf)rr4r-s&  r�*test_bool_not_called_when_passing_spec_arg�3MockTest.test_bool_not_called_when_passing_spec_arg7	si��	D�	D��k��
�]�]�
 �
 �
'�
'��-A��
'�
O�
O�
O�����/�/�8�8�C�C�Q�G�P�
O�s�B�B	�B	c	���QQ2oUO[29^tt^2[[Q0P	Q59^tt^2PPP2PPP2UO[29^tt^2[OUQP	Q59^tt^2PPP2PPP2UO[29^tt^2[[Q0P	Q59^tt^2PPP2PPP2UO[29^tt^2[OUQP	Q59^tt^2PPP2PPP2UO[29^tt^2[[Q0P	Q59^tt^2PPP2PPP2UO[29^tt^2[OUQP	Q59^tt^2PPP2PPP2UO[29^tt^2[UP	Q5oPPP2UO[29^tt^2[O[Q0[P	Q59^tt^2PPP2PPP2UO[29^tt^2[O[Q0[P	Q	59^tt^2PPP2PPP2UO[29^tt^2[O[Q0[P	Q
59^tt^2PPP2PPP2[[Q0P	P	Q59^tt^2PPP2[OUQP	P	Q59^tt^2PPP2[[Q0P	P	Q59^tt^2PPP2[OUQP	P	Q59^tt^2PPP2[[Q0P	P	Q
59^tt^2PPP2[OUQP	P	Q
59^tt^2PPP2[UP	P	Q5o[O[Q0P	P	P	Q59^tt^2PPP2P!)%fhCK9h)%fhCK+9h)%fhCK�9h)%fhCK9h)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCKa9h)%fhCKm9h)%fhCKN9h)%fhCK9h)%fhCK9h)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCKu9h)%fhCK^9h)%fhCKK9h)%fhCK49h)%fhP!9h)c��\sQsQsQsQsP!)�/MockTest.test_misspelled_arguments.<locals>.FooiB	r�r$r�r$r!rr+r�B	s���Cr!r+rZ)rTr�)rU)rVr])r;rT)r;rU)r;rV)r�rT)r�rU)r�rV)rVr�z.Typos)rTrVrU)	r�r�rr*rNrr��multiplerr�s&  r�test_misspelled_arguments�"MockTest.test_misspelled_argumentsA	s5��	�	��
�
�|�
,�
,��(��?�3�t�D�D�D�-�
�
�
�|�
,�
,����c�5�D�9�9�9�-�
�
�
�|�
,�
,��(��?�3�t�D�D�D�-�
�
�
�|�
,�
,����c�5�D�9�9�9�-�
�
�
�|�
,�
,��(��?�3�d�C�C�C�-�
�
�
�|�
,�
,����c�5�4�8�8�8�-�
�
�
�|�
,�
,���d�3�A�-�
�
�
�~�
.�
.�����*�J�'�g��G�G�HL�G�/��
�
�~�
.�
.�����*�J�'�g��G�G�HL�G�/��
�
�~�
.�
.�����*�J�'�g��F�F�GK�F�/��h�Z��/���
M�
M��N�
�\�\�#�u�T�T�
B�
B�
B�
�h�Z��/���
M�
M��N�
�\�\�#�u�T�T�
B�
B�
B�
�h�Z��/��t�
L�
L��M�
�\�\�#�u�T�D�
A�
A�
A��C�$�t�<��
�^�^��j���4�$�$�P�P��P�P�IE�D�D��-�
,�
,��:�9�9��-�
,�
,��E�D�D��-�
,�
,��:�9�9��-�
,�
,��D�C�C��-�
,�
,��9�8�8��-�
,�
,��
,�
,�
,��G�G�G��/�
.�
.��G�G�G��/�
.�
.��F�F�F��/�
.�
.��N�
M�
M��
B�
B�
B��
M�
M�
M��
B�
B�
B��
L�
L�
L��
A�
A�
A��P�P�P�s?�Q1�Q	�Q1�4"R�R	�R�S�!R-	�"S�"S)�1S	�2S)�T�<S=	�=T�*"T9�T%	�
T9�:U
�--U5�U!	�U5�	-V�6V		�8V�%-W�V1	�W�W�-W-�X�?X�%X)�X=�Y�Q.
�&Q.
�(	Q1�1R	�:R	�R
�R
�	R�R*	�"R*	�-R>
�6R>
�8	S�S	�
S	�S&
�S&
� 	S)�)S:	�2S:	�=T
�T
�	T�T"	�T"	�%T6
�.T6
�0	T9�9U
	�U
	�
U	�U	�!U2
�*U2
�,	U5�5V	�>V	�	V
�V
�	V�V.	�&V.	�1W
�:W
�<	W�W	�W	�W*	�"W*	�-W>	�6W>	�X	�
X	�X&	�X&	�)X:	�2X:	�=Y	�Y	�Y"	�Y"	c���[2oUOUOQQ5[UQ5oUOUOQQ5UO	QUO
2P!)zbefore mock)rcr�z
after mockrN)rHrnrKrrerO)rr-rs&  r�'test_property_not_called_with_spec_mock�0MockTest.test_property_not_called_with_spec_mocko	sT���o�����#�-�-�]��;���~�����#�-�-�\��:�����3�<�<�0r!c��QQ2o[UQ5oUOUOUO1FDoUO	U[
2J	P!)c�H`�\sQsQsn\Q2s\Q2sQsQs	Us
P!)�AMockTest.test_decorated_async_methods_with_spec_mock.<locals>.Fooiw	c�� �P!3hr#r$rps&rrq�NMockTest.test_decorated_async_methods_with_spec_mock.<locals>.Foo.class_methodx	�������c�� �P!3hr#r$r$r!rrt�OMockTest.test_decorated_async_methods_with_spec_mock.<locals>.Foo.static_method{	r�r�c�� �P!3hr#r$rs&rr��HMockTest.test_decorated_async_methods_with_spec_mock.<locals>.Foo.method~	s����r�r$)r*r+r,r-rErqrFrtr�r/r0r1s@rr+r�w	s3����
�
��
�
�
��
�
�
r!r+r�)rr�rqrtrQr)rr+rrGs&   r�+test_decorated_async_methods_with_spec_mock�4MockTest.test_decorated_async_methods_with_spec_mockv	sI��	�	���~���+�+�t�0�0�$�2D�2D�E�A��!�!�!�Y�/�Fr!r$)�r*r+r,r-r^rsrwrr�r�r�r�r�r�r�r�r�r�rrrrr!r$r(r0r5r=rCrHrVr]rdrnrvr{rr�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrr.r2r6r9r=rBrKrSrYrbrlr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrr!r,rArFrPrWr[r`rfrjrzr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrrr%r4r;r@rDrKrNrWr`rerhrkrnrqrurxr}r�r�r�r�r�r�r/r0r1s@rr[r[=s����,�A�8F�$��K�/�

=� -�<2�6E�$=�!�:O� R�*	6�	4�L�&C�R��#&�L>�,$�8@�'�
A� �(3�
�.2�#�,
=� ?�3��0�0�4.�(C�&�
8� 6�
6�5�
8�8�6�
8�6�8�B9�$0�3�9�3�/�@�'�('�(4��0�(
9�-�.
8�
�-�3�*'�5�pK;�\=�6�9�?�=�?�N�L�3�
3�" �F
8� /�0%�3�*3�
*�X%�P%�P"�:�>!A�F
�4A�&�$-�
G�"�(�V*�(�!� �	)�"�5�8�/�.�1�.�&�0�0�j>�"2�2B�G�,	1�+�'��/�
	0�(�
,�9�:D�"
I� P�(I�:
B�/�&�-��8�<�
;�
=�%6�NH�,�\1�0�0r!r[�__main__)"rjrtrer+�test.supportrr��#test.test_unittest.testmock.supportrrr�rrrr	r
rrr
rrrrrrNrr4rHrSrYr�r[r*�mainr$r!r�<module>r�s����	�
��"��;������
�6�
�%��%��F�����E%0�x� � �E%0�NJ�z���M�M�O�r!

Youez - 2016 - github.com/yon3zu
LinuXploit