File: //opt/alt/python27/lib/python2.7/site-packages/nose/case.pyo
�
�3�Sc           @   s�   d  Z  d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m	 Z	 d d l
 m Z m Z m
 Z
 e j e � Z d g Z d e j f d �  �  YZ d	 e j f d
 �  �  YZ d e f d �  �  YZ d
 e f d �  �  YZ d S(   s�   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.
i����N(   t
   isfunction(   t   Config(   t   Failure(   t   resolve_namet   test_addresst   try_runt   Testc           B   s�   e  Z d  Z e Z d d d � Z d �  Z d �  Z d �  Z	 d �  Z
 d �  Z d �  Z d �  Z
 d	 �  Z d
 �  Z e e d d d � Z d �  Z d
 �  Z d �  Z RS(   s�   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.
    c         C   s�   t  | � s t d | � � n  | |  _ | d  k r@ t �  } n  | |  _ d  |  _ d  |  _ | |  _ | j	 |  _	 d  |  _
 t j j
 |  � d  S(   NsT   nose.case.Test called with argument %r that is not callable. A callable is required.(   t   callablet	   TypeErrort   testt   NoneR   t   configt   tbinfot   capturedOutputt   resultProxyt   pluginst   passedt   unittestt   TestCaset   __init__(   t   selfR	   R   R   (    (    s:   /opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR      s    
						c         O   s   |  j  | | �  S(   N(   t   run(   R   t   argt   kwarg(    (    s:   /opt/alt/python27/lib/python2.7/site-packages/nose/case.pyt   __call__,   s    c         C   s/   |  j  j |  � } | d  k	 r"