ó
}Ť¸Vc           @   s]   d  d l  j Z d  d l m Z d e f d     YZ d   Z d   Z d   Z	 d   Z
 d S(	   i˙˙˙˙N(   t   dir2t   Basec           B   s   e  Z d  Z d Z RS(   i   i   (   t   __name__t
   __module__t   xt   z(    (    (    sU   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/utils/tests/test_dir2.pyR      s   c          C   s   t  t    }  d |  k s! t  d |  k s3 t  d |  k sE t  d |  k sW t  t j |  j d  d  t j |  j d  d  d  S(   NR   R   t   yt	   __class__i   (   R    R   t   AssertionErrort   ntt   assert_equalt   count(   t   res(    (    sU   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/utils/tests/test_dir2.pyt	   test_base
   s    c          C   sm   d t  f d     Y}  t |     } d | k s7 t  t j | j d  d  t j | j d  d  d  S(   Nt   SubClassc           B   s   e  Z d  Z RS(   i   (   R   R   R   (    (    (    sU   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/utils/tests/test_dir2.pyR      s   R   i   R   (   R   R    R   R	   R
   R   (   R   R   (    (    sU   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/utils/tests/test_dir2.pyt   test_SubClass   s
    c          C   s;   d t  f d     Y}  t |     } d | k s7 t  d  S(   NR   c           B   s   e  Z d  Z d Z RS(   i   i,   (   R   R   R   t   trait_names(    (    (    sU   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/utils/tests/test_dir2.pyR   !   s   R   (   R   R    R   (   R   R   (    (    sU   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/utils/tests/test_dir2.pyt#   test_SubClass_with_trait_names_attr   s    c          C   sh   d t  f d     Y}  d |  f d     Y} x5 |  | f D]' } t |    } d | k s9 t  q9 Wd  S(   Nt   MisbehavingGetattrc           B   s   e  Z d    Z d   Z RS(   c         S   s   t  d   d  S(   Ns   I should be caught(   t   KeyError(   t   self(    (    sU   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/utils/tests/test_dir2.pyt   __getattr__.   s    c         S   s   d  S(   N(    (   R   (    (    sU   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/utils/tests/test_dir2.pyt   some_method1   s    (   R   R   R   R   (    (    (    sU   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/utils/tests/test_dir2.pyR   -   s   	t   SillierWithDirc           B   s   e  Z d    Z RS(   c         S   s   d g S(   NR   (    (   R   (    (    sU   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/utils/tests/test_dir2.pyt   __dir__5   s    (   R   R   R   (    (    (    sU   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/utils/tests/test_dir2.pyR   4   s   R   (   t   objectR    R   (   R   R   t	   bad_klassR   (    (    sU   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/utils/tests/test_dir2.pyt+   test_misbehaving_object_without_trait_names)   s
    (   t
   nose.toolst   toolsR	   t   IPython.utils.dir2R    R   R   R   R   R   R   (    (    (    sU   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/utils/tests/test_dir2.pyt   <module>   s   				