
'Gc           @   sE   d  d l  Z  d  d l m Z m Z d Z d e  j f d     YZ d S(   iN(   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(    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/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   (    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/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   (    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_splice.pyt   test_splice_new_feed_items   s    	(   t   __name__t
   __module__R   R   R   (    (    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_splice.pyR      s   	
	(   t   unittestt   planet.spliceR    R   R   t   TestCaseR   (    (    (    sB   /home/sa3ruby/intertwingly.net/code/venus-bzr/tests/test_splice.pyt   <module>   s   