#NEWLINE# def test_remove( self ) : #NEWLINE# #INDENT# original = invert_permissions_matrix ( { #NEWLINE# #INDENT# 'alexis' : [ 'create_record' , 'read_permissions' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# specified = { #NEWLINE# #INDENT# 'alexis' : [ '-read_permissions' ] , #NEWLINE# #UNINDENT# } #NEWLINE# result = merge_permissions ( original , specified ) #NEWLINE# self . assertNotIn ( 'alexis' , result [ 'read_permissions' ] ) #NEWLINE# self . assertIn ( 'alexis' , result [ 'create_record' ] )