ó
[O_Qc           @   s  d  Z  d d l Z d d l Z d d g Z d Z d d „ Z d d „ Z e j d ƒ Z	 d	 „  Z
 d
 e j f d „  ƒ  YZ e d ƒ Z xq g  e e ƒ D]' Z e j d ƒ r• d e k r• e ^ q• D]5 Z e
 e ƒ Z e e e ƒ e ƒ  e <e j e ƒ qÀ W[ [ [
 d S(   sû   Tools so trivial that tracebacks should not descend into them

We define the ``__unittest`` symbol in their module namespace so unittest will
skip them when printing tracebacks, just as it does for their corresponding
methods in ``unittest`` proper.

iÿÿÿÿNt   ok_t   eq_i   c         C   s   |  s t  | ƒ ‚ n  d S(   s4   Shorthand for assert. Saves 3 whole characters!
    N(   t   AssertionError(   t   exprt   msg(    (    s1   lib/python2.7/site-packages/nose/tools/trivial.pyR       s    c         C   s/   |  | k s+ t  | p" d |  | f ƒ ‚ n  d S(   s6   Shorthand for 'assert a == b, "%r != %r" % (a, b)
    s   %r != %rN(   R   (   t   at   bR   (    (    s1   lib/python2.7/site-packages/nose/tools/trivial.pyR      s    s   ([A-Z])c         C   s   t  j d „  |  ƒ S(   Nc         S   s   d |  j  ƒ  d j ƒ  S(   Nt   _i    (   t   groupst   lower(   t   m(    (    s1   lib/python2.7/site-packages/nose/tools/trivial.pyt   <lambda>'   s    (   t   capst   sub(   t   name(    (    s1   lib/python2.7/site-packages/nose/tools/trivial.pyt   pep8&   s    t   Dummyc           B   s   e  Z d  „  Z RS(   c           C   s   d  S(   N(    (    (    (    s1   lib/python2.7/site-packages/nose/tools/trivial.pyt   nop*   s    (   t   __name__t
   __module__R   (    (    (    s1   lib/python2.7/site-packages/nose/tools/trivial.pyR   )   s   R   t   assertR   (   t   __doc__t   ret   unittestt   __all__t
   __unittestt   NoneR    R   t   compileR   R   t   TestCaseR   t   _tt   dirt   att
   startswitht   pepdt   getattrt   varst   append(    (    (    s1   lib/python2.7/site-packages/nose/tools/trivial.pyt   <module>   s$   	+