#NEWLINE# def assertProjectsEqual( self , observedProjects , expectedProjects ) : #NEWLINE# #INDENT# '\n        Assert that two lists of L{Project}s are equal.\n        ' #NEWLINE# self . assertEqual ( len ( observedProjects ) , len ( expectedProjects ) ) #NEWLINE# observedProjects = sorted ( observedProjects , key = operator . attrgetter ( 'directory' ) ) #NEWLINE# expectedProjects = sorted ( expectedProjects , key = operator . attrgetter ( 'directory' ) ) #NEWLINE# for ( observed , expected ) in zip ( observedProjects , expectedProjects ) : #NEWLINE# #INDENT# self . assertEqual ( observed . directory , expected . directory )