<s> import unittest <EOL> from pprint import pprint as pp <EOL> import diffier <EOL> text_1 = """<STR_LIT>""" <EOL> text_2 = """<STR_LIT>""" <EOL> class TestDiffy ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . diffy = diffier . Diffy ( ) <EOL> def test_calculate_diff ( self ) : <EOL> result1 , result2 = self . diffy . calculate_diff ( text_1 . split ( '<STR_LIT:\n>' ) , text_2 . split ( '<STR_LIT:\n>' ) ) <EOL> self . assertEqual ( <EOL> [ r . get_data ( ) for r in result1 ] , <EOL> [ ( <NUM_LIT:6> , <NUM_LIT:0> ) , ( <NUM_LIT:9> , <NUM_LIT> ) ] <EOL> ) <EOL> self . assertEqual ( <EOL> [ r . get_data ( ) for r in result2 ] , <EOL> [ ( <NUM_LIT:3> , <NUM_LIT:0> ) , ( <NUM_LIT:8> , <NUM_LIT:0> ) , ( <NUM_LIT:9> , <NUM_LIT:0> ) , ( <NUM_LIT:10> , <NUM_LIT:0> ) , ( <NUM_LIT:12> , <NUM_LIT> ) ] <EOL> ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
