#NEWLINE# def assertCategories( self , elem , expected ) : #NEWLINE# #INDENT# self . assertEqual ( set ( ( i . firstChild . wholeText for i in elem . childNodes if ( i . nodeName == 'category' ) ) ) , set ( i ) )