³ò
Jé¬Fc           @   sI   d  d k  Z  d  d k l Z d  d k l Z d e  i f d „  ƒ  YZ d S(   iÿÿÿÿN(   t   config(   t   splitt
   ThemesTestc           B   sk   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z RS(   c         C   s   t  i d ƒ d  S(   Ns   tests/data/config/themed.ini(   R    t   load(   t   self(    (    s.   /home/sgala/newcode/venus/tests/test_themes.pyt   setUp   s    c         C   sN   |  i  d d d d d g g  } t i ƒ  D] } | t | ƒ d q) ~ ƒ d  S(   Nt   foot   bart   asfR    t   commoni   (   t   assertEqualR    t   template_directoriesR   (   R   t   _[1]t   dir(    (    s.   /home/sgala/newcode/venus/tests/test_themes.pyt   test_template_directories   s    c         C   sL   |  i  d t g  } t i ƒ  D] } | d j o | d q q ~ ƒ ƒ d  S(   Ni   s   index.html.xslt(   R
   t   lenR    t   template_files(   R   R   t   file(    (    s.   /home/sgala/newcode/venus/tests/test_themes.pyt   test_template   s    #c         C   s0   t  i ƒ  } | i ƒ  |  i d d g | ƒ d  S(   Nt   feed1t   feed2(   R    t   subscriptionst   sortR
   (   R   t   feeds(    (    s.   /home/sgala/newcode/venus/tests/test_themes.pyt
   test_feeds   s    
c         C   s   |  i  d t i ƒ  ƒ d  S(   Ns   Test Configuration(   R
   R    t   name(   R   (    (    s.   /home/sgala/newcode/venus/tests/test_themes.pyt	   test_name   s    c         C   s   |  i  d t i ƒ  ƒ d  S(   Nt    (   R
   R    t   link(   R   (    (    s.   /home/sgala/newcode/venus/tests/test_themes.pyt	   test_link!   s    c         C   s6   |  i  d t i d ƒ ƒ |  i  d t i d ƒ ƒ d  S(   Ni   s   index.html.xslti    s   atom.xml.xslt(   R
   R    t   days_per_page(   R   (    (    s.   /home/sgala/newcode/venus/tests/test_themes.pyt   test_days_per_page&   s    c         C   s6   |  i  d t i d ƒ ƒ |  i  d t i d ƒ ƒ d  S(   Ni2   s   index.html.xslts   atom.xml.xslt(   R
   R    t   items_per_page(   R   (    (    s.   /home/sgala/newcode/venus/tests/test_themes.pyt   test_items_per_page*   s    c         C   s6   |  i  d t i d ƒ ƒ |  i  d t i d ƒ ƒ d  S(   Ns   utf-8s   index.html.xslts   atom.xml.xslt(   R
   R    t   encoding(   R   (    (    s.   /home/sgala/newcode/venus/tests/test_themes.pyt   test_encoding.   s    c         C   s>   |  i  d t i d ƒ d ƒ |  i  d t i d ƒ d ƒ d  S(   Nt   oneR   R   t   twoR   (   R
   R    t   feed_options(   R   (    (    s.   /home/sgala/newcode/venus/tests/test_themes.pyt   test_feed_options4   s    c         C   s;   t  i d ƒ } |  i d | d ƒ |  i d | d ƒ d  S(   Ns   index.html.xsltt   7R   t   50R    (   R    t   template_optionsR
   (   R   t   option(    (    s.   /home/sgala/newcode/venus/tests/test_themes.pyt   test_template_options8   s    (   t   __name__t
   __module__R   R   R   R   R   R   R   R!   R#   R'   R,   (    (    (    s.   /home/sgala/newcode/venus/tests/test_themes.pyR      s   										(   t   unittestt   planetR    t   os.pathR   t   TestCaseR   (    (    (    s.   /home/sgala/newcode/venus/tests/test_themes.pys   <module>   s   
