ó
ìŠ'Gc           @   sI   d  d l  Z  d  d l m Z d  d l m Z d e  j 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  j d ƒ d  S(   Ns   tests/data/config/themed.ini(   R    t   load(   t   self(    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_themes.pyt   setUp   s    c         C   sF   |  j  d d d d d g g  t j ƒ  D] } t | ƒ d ^ q% ƒ d  S(   Nt   foot   bart   asfR    t   commoni   (   t   assertEqualR    t   template_directoriesR   (   R   t   dir(    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_themes.pyt   test_template_directories   s    c         C   s?   |  j  d t g  t j ƒ  D] } | d k r d ^ q ƒ ƒ d  S(   Ni   s   index.html.xslt(   R
   t   lenR    t   template_files(   R   t   file(    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_themes.pyt   test_template   s    c         C   s0   t  j ƒ  } | j ƒ  |  j d d g | ƒ d  S(   Nt   feed1t   feed2(   R    t   subscriptionst   sortR
   (   R   t   feeds(    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_themes.pyt
   test_feeds   s    
c         C   s   |  j  d t j ƒ  ƒ d  S(   Ns   Test Configuration(   R
   R    t   name(   R   (    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_themes.pyt	   test_name   s    c         C   s   |  j  d t j ƒ  ƒ d  S(   Nt    (   R
   R    t   link(   R   (    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_themes.pyt	   test_link!   s    c         C   s6   |  j  d t j d ƒ ƒ |  j  d t j d ƒ ƒ d  S(   Ni   s   index.html.xslti    s   atom.xml.xslt(   R
   R    t   days_per_page(   R   (    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_themes.pyt   test_days_per_page&   s    c         C   s6   |  j  d t j d ƒ ƒ |  j  d t j d ƒ ƒ d  S(   Ni2   s   index.html.xslts   atom.xml.xslt(   R
   R    t   items_per_page(   R   (    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_themes.pyt   test_items_per_page*   s    c         C   s6   |  j  d t j d ƒ ƒ |  j  d t j d ƒ ƒ d  S(   Ns   utf-8s   index.html.xslts   atom.xml.xslt(   R
   R    t   encoding(   R   (    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_themes.pyt   test_encoding.   s    c         C   s>   |  j  d t j d ƒ d ƒ |  j  d t j d ƒ d ƒ d  S(   Nt   oneR   R   t   twoR   (   R
   R    t   feed_options(   R   (    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_themes.pyt   test_feed_options4   s    c         C   s;   t  j d ƒ } |  j d | d ƒ |  j d | d ƒ d  S(   Ns   index.html.xsltt   7R   t   50R   (   R    t   template_optionsR
   (   R   t   option(    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_themes.pyt   test_template_options8   s    (   t   __name__t
   __module__R   R   R   R   R   R   R   R    R"   R&   R+   (    (    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_themes.pyR      s   										(   t   unittestt   planetR    t   os.pathR   t   TestCaseR   (    (    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_themes.pyt   <module>   s   