
`]c           @   sE   d  d l  Z  d  d l Z d  d l m Z d e  j f d     YZ d S(   iN(   t   assert_raisest   TestDatac           B   s   e  Z d    Z d   Z RS(   c         C   sJ   t  t   } t j j d  Wd  QXt | j  t k sF t d   d  S(   Ns   no_such_resource/foos   Unexpected exception raised(   R    t   LookupErrort   nltkt   datat   findt   typet	   exceptiont   AssertionError(   t   selft   context(    (    s7   lib/python2.7/site-packages/nltk/test/unit/test_data.pyt   test_find_raises_exception   s    c         C   sP   d } t  t   } t j j |  Wd  QX| t | j  k sL t d   d  S(   Ns   no_such_thing/bars5   Exception message does not include full resource name(   R    R   R   R   R   t   strR   R   (   R	   t   no_such_thingR
   (    (    s7   lib/python2.7/site-packages/nltk/test/unit/test_data.pyt2   test_find_raises_exception_with_full_resource_name   s    (   t   __name__t
   __module__R   R   (    (    (    s7   lib/python2.7/site-packages/nltk/test/unit/test_data.pyR      s   	(   t   unittestt	   nltk.dataR   t
   nose.toolsR    t   TestCaseR   (    (    (    s7   lib/python2.7/site-packages/nltk/test/unit/test_data.pyt   <module>   s   