ó
4Mc           @   sE   d  d l  Z  d  d l m Z m Z d Z d e  j f d „  ƒ  YZ d S(   iÿÿÿÿN(   t   splicet   configs   tests/data/splice/config.init
   SpliceTestc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   sš   t  j t ƒ t ƒ  } |  j d t | j d ƒ ƒ ƒ |  j d t | j d ƒ ƒ ƒ |  j d t | j d ƒ ƒ ƒ |  j d | j d ƒ d	 j j ƒ d  S(
   Ni   t   entryi   s   planet:sourcei   s   planet:names   test planett   titlei    (	   R   t   loadt
   configfileR    t   assertEqualt   lent   getElementsByTagNamet
   firstChildt	   nodeValue(   t   selft   doc(    (    s>   /home/sa3ruby/intertwingly.net/code/venus/tests/test_splice.pyt   test_splice
   s    		c         C   s‡   t  j t ƒ t  j j d ƒ t ƒ  } |  j d t | j d ƒ ƒ ƒ |  j d t | j d ƒ ƒ ƒ |  j d t | j d ƒ ƒ ƒ d  S(   Ns    tests/data/spider/testfeed2.atomi   R   i   s   planet:sourcei   s   planet:name(	   R   R   R   t   parsert   remove_sectionR    R   R   R	   (   R   R   (    (    s>   /home/sa3ruby/intertwingly.net/code/venus/tests/test_splice.pyt   test_splice_unsub   s    	c         C   s�   t  j t ƒ t  j j d d d ƒ t ƒ  } |  j d t | j d ƒ ƒ ƒ |  j d t | j d ƒ ƒ ƒ |  j d t | j d	 ƒ ƒ ƒ d  S(
   Nt   Planett   new_feed_itemst   3i	   R   i   s   planet:sourcei   s   planet:name(	   R   R   R   R   t   setR    R   R   R	   (   R   R   (    (    s>   /home/sa3ruby/intertwingly.net/code/venus/tests/test_splice.pyt   test_splice_new_feed_items   s    	(   t   __name__t
   __module__R   R   R   (    (    (    s>   /home/sa3ruby/intertwingly.net/code/venus/tests/test_splice.pyR      s   	
	(   t   unittestt   planet.spliceR    R   R   t   TestCaseR   (    (    (    s>   /home/sa3ruby/intertwingly.net/code/venus/tests/test_splice.pyt   <module>   s   