#NEWLINE# def test_add_all( self ) : #NEWLINE# #INDENT# original = invert_permissions_matrix ( { #NEWLINE# #INDENT# 'alexis' : [ 'create_record' , 'read_permissions' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# specified = { #NEWLINE# #INDENT# 'remy' : [ 'ALL' ] , #NEWLINE# #UNINDENT# } #NEWLINE# result = merge_permissions ( original , specified ) #NEWLINE# result = invert_permissions_matrix ( result ) #NEWLINE# self . assertDictEqual ( result , { #NEWLINE# #INDENT# 'alexis' : [ 'create_record' , 'read_permissions' ] , #NEWLINE# 'remy' : sorted ( PERMISSIONS_SET ) , #NEWLINE# #UNINDENT# } )