Back to index

plone3  3.1.7
Public Member Functions
GenericSetup.tests.test_differ.Test_unidiff Class Reference

List of all members.

Public Member Functions

def test_unidiff_both_text
def test_unidiff_both_lines
def test_unidiff_mixed
def test_unidiff_ignore_blanks

Detailed Description

Definition at line 31 of file test_differ.py.


Member Function Documentation

Definition at line 41 of file test_differ.py.

00041 
00042     def test_unidiff_both_lines( self ):
00043 
00044         from Products.GenericSetup.differ import unidiff
00045 
00046         diff_lines = unidiff( ONE_FOUR.splitlines(), ZERO_FOUR.splitlines() )
00047         diff_text = '\n'.join( diff_lines )
00048         self.assertEqual( diff_text, DIFF_TEXT )

Here is the call graph for this function:

Definition at line 33 of file test_differ.py.

00033 
00034     def test_unidiff_both_text( self ):
00035 
00036         from Products.GenericSetup.differ import unidiff
00037 
00038         diff_lines = unidiff( ONE_FOUR, ZERO_FOUR )
00039         diff_text = '\n'.join( diff_lines )
00040         self.assertEqual( diff_text, DIFF_TEXT )

Here is the call graph for this function:

Definition at line 57 of file test_differ.py.

00057 
00058     def test_unidiff_ignore_blanks( self ):
00059 
00060         from Products.GenericSetup.differ import unidiff
00061 
00062         double_spaced = ONE_FOUR.replace( '\n', '\n\n' )
00063         diff_lines = unidiff( double_spaced
00064                             , ZERO_FOUR.splitlines()
00065                             , ignore_blanks=True
00066                             )
00067 
00068         diff_text = '\n'.join( diff_lines )
00069         self.assertEqual( diff_text, DIFF_TEXT )

Here is the call graph for this function:

Definition at line 49 of file test_differ.py.

00049 
00050     def test_unidiff_mixed( self ):
00051 
00052         from Products.GenericSetup.differ import unidiff
00053 
00054         diff_lines = unidiff( ONE_FOUR, ZERO_FOUR.splitlines() )
00055         diff_text = '\n'.join( diff_lines )
00056         self.assertEqual( diff_text, DIFF_TEXT )

Here is the call graph for this function:


The documentation for this class was generated from the following file: