ó
ūR_c           @   s:   d  d l  m Z d  d l m Z d e f d     YZ d S(   i’’’’(   t   TestCase(   t   difft   TestDiffc           B   s   e  Z d    Z d   Z RS(   c         C   sz   t  d d  } d } |  j g  | j d  D] } | j   ^ q+ g  | j d  D] } | j   ^ qP d | | f  d  S(   Ns3   
        line1
        line2
        line3
        s:   
        line1
        line changed
        line3
        sr   --- first
+++ second
@@ -1,5 +1,5 @@

         line1
-        line2
+        line changed
         line3
         s   
s	   
%r
!=
%r(   R   t   assertEqualt   splitt   strip(   t   selft   actualt   expectedt   line(    (    sU   /var/www/syncserver/local/lib/python2.7/site-packages/testfixtures/tests/test_diff.pyt   test_example   s    	
%%c         C   sq   t  d d  } y' d } |  j | | d | | f  Wn4 t k
 rl d } |  j | | d | | f  n Xd  S(   Nt   xt   ys   @@ -1 +1 @@
-x
+ys	   
%r
!=
%rs&   --- first
+++ second
@@ -1 +1 @@
-x
+y(   R   R   t   AssertionError(   R   R   R   (    (    sU   /var/www/syncserver/local/lib/python2.7/site-packages/testfixtures/tests/test_diff.pyt   test_no_newlines#   s    (   t   __name__t
   __module__R
   R   (    (    (    sU   /var/www/syncserver/local/lib/python2.7/site-packages/testfixtures/tests/test_diff.pyR      s   	N(   t   unittestR    t   testfixturesR   R   (    (    (    sU   /var/www/syncserver/local/lib/python2.7/site-packages/testfixtures/tests/test_diff.pyt   <module>   s   