#NEWLINE# def test_sanitization( self ) : #NEWLINE# #INDENT# line = ' cortex   hypervisors\t* CRUD\n  \t' #NEWLINE# result = [ re . compile ( 'cortex' ) , re . compile ( 'hypervisors' ) , re . compile ( '.*' ) , set ( perm_mapping ) ] #NEWLINE# test = permissions . process ( line ) #NEWLINE# test [ 3 ] = set ( test [ 3 ] ) #NEWLINE# self . assertListEqual ( test , test )