| Current Path : /lib/python3/dist-packages/zope/component/tests/__pycache__/ |
| Current File : //lib/python3/dist-packages/zope/component/tests/__pycache__/test_hookable.cpython-38.pyc |
U
,�W � @ s* d Z ddlZG dd� dej�Zdd� ZdS )zPure-Python hookable tests
� Nc @ sd e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Zdd� Zd
d� Z dd� Z
dd� Zdd� Zdd� Z
dS )�
HookableTestsc C s ddl m} | �t|� d S )Nr ��hookable��zope.component.hookabler ZassertRaises� TypeError)�selfr � r �D/usr/lib/python3/dist-packages/zope/component/tests/test_hookable.py�test_ctor_no_func s zHookableTests.test_ctor_no_funcc C s@ ddl m} dd� }||�}| �|j|k� | �|j|k� d S )Nr r c S s d S �Nr r r r r
�foo s z+HookableTests.test_ctor_simple.<locals>.foo)r r �
assertTrue�original�implementation�r r r
�hookedr r r
�test_ctor_simple s
zHookableTests.test_ctor_simplec C s( ddl m} dd� }| �t|||� d S )Nr r c S s d S r r r r r r
r
# s z.HookableTests.test_ctor_extra_arg.<locals>.foor �r r r
r r r
�test_ctor_extra_arg! s z!HookableTests.test_ctor_extra_argc C s* ddl m} dd� }| jt|||d� d S )Nr r c S s d S r r r r r r
r
) s z3HookableTests.test_ctor_extra_arg_miss.<locals>.foo)Znonesuchr r r r r
�test_ctor_extra_arg_miss'