Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/zope/interface/tests/__pycache__/ |
Upload File : |
o $ x`�) � @ s� d Z ddlZddlZddlmZ ddlmZ G dd� dej�ZdZG dd � d ej�Z G d d� dej�Z G dd � d ej�ZG dd� dej�ZdS )as Tests for advice This module was adapted from 'protocols.tests.advice', part of the Python Enterprise Application Kit (PEAK). Please notify the PEAK authors (pje@telecommunity.com and tsarna@sarna.org) if bugs are found or Zope-specific changes are required, so that the PEAK version of this module can be kept in sync. PEAK is a Python application framework that interoperates with (but does not require) Zope 3 and Twisted. It provides tools for manipulating UML models, object-relational persistence, aspect-oriented programming, and more. Visit the PEAK home page at http://peak.telecommunity.com for more information. � N)�_skip_under_py2)�_skip_under_py3kc @ s8 e Zd Zdd� Zedd� �Zdd� Zdd� Zd d � ZdS )� FrameInfoTestc C sL ddl m} |j\}}}}| �|d� |j||fD ] }| �||ju � qd S )Nr ��advisory_testing�module)�zope.interface.testsr �moduleLevelFrameInfo�assertEqual�__dict__� assertTrue� my_globals��selfr �kindr �f_locals� f_globals�d� r �B/usr/lib/python3/dist-packages/zope/interface/tests/test_advice.py� test_w_module% s ��zFrameInfoTest.test_w_modulec C s^ ddl m} |jj\}}}}| �|d� | �||jju � |j|fD ] }| �||ju � q"d S �Nr r �class)r r �ClassicClass�classLevelFrameInfor r r r r r r r �test_w_ClassicClass- s � ��z!FrameInfoTest.test_w_ClassicClassc C sL ddl m} |jj\}}}}| �|d� |j|fD ] }| �||ju � qd S r )r r � NewStyleClassr r r r r r r r r �test_w_NewStyleClass; s ��z"FrameInfoTest.test_w_NewStyleClassc C s` ddl m} |t�� �\}}}}| �|d� | �|t� u � |j|fD ] }| �|t� u � q#d S )Nr ��getFrameInfoz function call) �zope.interface.advicer �sys� _getframer r �localsr �globals)r r r r r r r r r r �test_inside_function_callF s �z'FrameInfoTest.test_inside_function_callc C sn ddl m} d|i}i }tt||� | �|d d� | �|d |u � | �|d d u � | �|d |u � d S ) Nr r r r �execr r r )r r r&