#NEWLINE# def _AssertListEqual( self , list1 , list2 ) : #NEWLINE# #INDENT# 'Asserts that, when sorted, list1 and list2 are identical.' #NEWLINE# sorted_list1 = [ re . sub ( '/$' , '' , x ) for x in list1 ] #NEWLINE# sorted_list2 = [ re . sub ( '/$' , '' , x ) for x in list2 ] #NEWLINE# sorted_list1 . sort ( ) #NEWLINE# sorted_list2 . sort ( ) #NEWLINE# self . assertEqual ( sorted_list1 , sorted_list2 )