ó
ù`]c           @  sY   d  Z  d d l m Z d d l Z d d l m Z e j ƒ  d e j f d „  ƒ  YZ d S(   u$   
Unit tests for nltk.corpus.nombank
iÿÿÿÿ(   t   unicode_literalsN(   t   nombankt   NombankDemoc           B  s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C  sX   |  j  t t j ƒ  ƒ d ƒ |  j  t t j ƒ  ƒ d ƒ |  j  t t j ƒ  ƒ d ƒ d  S(   NiŽ¿ iÉ  i`  (   t   assertEqualt   lenR   t	   instancest   rolesetst   nouns(   t   self(    (    s:   lib/python2.7/site-packages/nltk/test/unit/test_nombank.pyt   test_numbers   s    c         C  s!   |  j  t j ƒ  d j d ƒ d  S(   Ni    u   perc-sign.01(   R   R   R   t   roleset(   R   (    (    s:   lib/python2.7/site-packages/nltk/test/unit/test_nombank.pyt   test_instance   s    c         C  sC   |  j  t t j ƒ  ƒ d ƒ |  j t d „  t j ƒ  Dƒ ƒ ƒ d  S(   Nia  c         s  s   |  ] } | j  d  ƒ Vq d S(   u   .xmlN(   t   endswith(   t   .0t   fileid(    (    s:   lib/python2.7/site-packages/nltk/test/unit/test_nombank.pys	   <genexpr>   s    (   R   R   R   t   fileidst
   assertTruet   all(   R   (    (    s:   lib/python2.7/site-packages/nltk/test/unit/test_nombank.pyt   test_framefiles_fileids   s    (   t   __name__t
   __module__R	   R   R   (    (    (    s:   lib/python2.7/site-packages/nltk/test/unit/test_nombank.pyR      s   			(	   t   __doc__t
   __future__R    t   unittestt   nltk.corpusR   R   t   TestCaseR   (    (    (    s:   lib/python2.7/site-packages/nltk/test/unit/test_nombank.pyt   <module>   s
   
