ó
TÒZc           @   sw   d  d l  Z  d  d l Z e  j j d ƒ d  d l Td a d „  Z d e j f d „  ƒ  YZ	 e
 d k rs e j ƒ  n  d S(   iÿÿÿÿNs   ../..(   t   *c          C   s.   t  s t d d ƒ }  n  x |  D] } | SWd  S(   Nt   patht   testdata(   t   kdictt   keydict(   t   kdt   key(    (    s   ./tests/dnskey_test.pyt   getkey   s    t
   DnskeyTestc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s½   t  ƒ  } |  j | j ƒ  d ƒ |  j | j ƒ  d ƒ |  j | j ƒ  d ƒ |  j | j ƒ  d ƒ |  j | j ƒ  d ƒ |  j | j ƒ  d ƒ |  j | j ƒ  d ƒ |  j | j	 ƒ  d ƒ d  S(	   Ni_“OVi¢(Vi¢“OVi"Ç0Xi¢úZi".ó[i¢y Vi¢Â\V(
   R   t   assertEqualt   createdt   publisht   activatet   revoket   inactivet   deletet   syncpublisht
   syncdelete(   t   selfR   (    (    s   ./tests/dnskey_test.pyt   test_metdata"   s    	c         C   sÕ   t  ƒ  } |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j d	 ƒ d
 ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ d  S(   Nt   Createdt   20151120214047t   Publisht   20151021214154t   Activatet   20151120214154t   Revoket   20161119214154t   Inactivet   20171119214154t   Deletet   20181119214154t   SyncPublisht   20150921214154t
   SyncDeletet   20151130214154(   R   R	   t
   getfmttime(   R   R   (    (    s   ./tests/dnskey_test.pyt   test_fmttime-   s    	(   t   __name__t
   __module__R   R%   (    (    (    s   ./tests/dnskey_test.pyR   !   s   	t   __main__(   t   syst   unittestR   t   appendt   isct   NoneR   R   t   TestCaseR   R&   t   main(    (    (    s   ./tests/dnskey_test.pyt   <module>   s   
	