ó
þ’šIc           @   sv   d  d l  Z  d  d l Z d  d l m Z d e  j f d „  ƒ  YZ e d k rr e  j d d ƒ Z	 e  j
 d e	 ƒ n  d S(	   iÿÿÿÿN(   t   KeyWListt   KeyWListTestc           B   s   e  Z d  „  Z RS(   c         C   s  t  j j d d ƒ } t | ƒ } t j | ƒ } | j ƒ  } |  j | d d ƒ |  j | d d ƒ |  j | d d ƒ |  j | d	 d
 ƒ |  j t | d ƒ d ƒ |  j | d d g ƒ |  j t | d ƒ d ƒ |  j | d d d ƒ |  j | d d d ƒ |  j | d d ƒ | j ƒ  } |  j | d d ƒ |  j | d d ƒ |  j | d d ƒ | j ƒ  } |  j | d d ƒ |  j | d d ƒ |  j | d d ƒ |  j | d	 d ƒ |  j t | d ƒ d ƒ |  j | d d d ƒ |  j | d d ƒ | j	 ƒ  d S(    s   Parsing keywlist.txtt	   SwissProts   keywlist.txtt   IDs   2Fe-2S.t   ACs   KW-0001t   DEs    Protein which contains at least one 2Fe-2S iron-sulfur cluster: 2 iron atoms complexed to 2 inorganic sulfides and 4 sulfur atoms of cysteines from the protein.t   SYs}   Fe2S2; [2Fe-2S] cluster; [Fe2S2] cluster; Fe2/S2 (inorganic) cluster; Di-mu-sulfido-diiron; 2 iron, 2 sulfur cluster binding.t   GOi   s,   GO:0051537; 2 iron, 2 sulfur cluster bindingt   HIi   i    s"   Ligand: Iron; Iron-sulfur; 2Fe-2S.s   Ligand: Metal-binding; 2Fe-2S.t   CAs   Ligand.t   ICs   Molecular function.s   KW-9992sI   Keywords assigned to proteins due to their particular molecular function.s   Zymogen.s   KW-0865sC   The enzymatically inactive precursor of mostly proteolytic enzymes.s
   Proenzyme.s   PTM: Zymogen.s   PTM.N(
   t   ost   patht   joint   openR    t   parset   nextt   assertEqualt   lent   close(   t   selft   filenamet   handlet   recordst   record(    (    s   test_KeyWList.pyt
   test_parse   s6    (   t   __name__t
   __module__R   (    (    (    s   test_KeyWList.pyR   
   s   t   __main__t	   verbosityi   t
   testRunner(   t   unittestt   os.pathR   t   Bio.SwissProtR    t   TestCaseR   R   t   TextTestRunnert   runnert   main(    (    (    s   test_KeyWList.pyt   <module>   s   (