#NEWLINE# def test_user( self ) : #NEWLINE# #INDENT# ID = 'id' #NEWLINE# ROLE = 'role' #NEWLINE# acl = self . _makeOne ( ) #NEWLINE# acl . loaded = True #NEWLINE# entity = acl . user ( ID ) #NEWLINE# entity . grant ( ROLE ) #NEWLINE# self . assertEqual ( entity . type , 'user' ) #NEWLINE# self . assertEqual ( entity . identifier , ID ) #NEWLINE# self . assertEqual ( list ( acl ) , [ { #NEWLINE# #INDENT# 'entity' : ( 'user-%s' % self ) , #NEWLINE# 'role' : ROLE , #NEWLINE# #UNINDENT# } ] )