관리-도구
편집 파일: case.cpython-38.pyc
U )�e�3 � @ s� d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl mZmZm Z ddlZe�e�ZdgZG dd� dej�ZG d d � d ej�ZG dd� de�ZG d d� de�ZdS )z�nose unittest.TestCase subclasses. It is not necessary to subclass these classes when writing tests; they are used internally by nose.loader.TestLoader to create test cases from test functions and methods in test classes. � N)� isfunction)�Config)�Failure)�resolve_name�test_address�try_run�Testc @ s� e Zd ZdZdZddd�Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zdd� Zdd� Z dd� Zeeddd�Zdd� Zdd� Zdd� ZdS ) r z�The universal test case wrapper. When a plugin sees a test, it will always see an instance of this class. To access the actual test case that will be run, access the test property of the nose.case.Test instance. FNc C sb t |tj�std| ��|| _|d kr,t� }|| _d | _d | _|| _ |j | _ d | _tj �| � d S )NzTnose.case.Test called with argument %r that is not callable. A callable is required.)� isinstance�collections�Callable� TypeError�testr �configZtbinfoZcapturedOutput�resultProxy�pluginsZpassed�unittest�TestCase�__init__)�selfr r r � r �7/opt/hc_python/lib/python3.8/site-packages/nose/case.pyr s �z Test.__init__c O s | j ||�S �N)�run)r �arg�kwargr r r �__call__- s z Test.__call__c C s"