#NEWLINE# def test_entity_from_dict_allUsers_eager( self ) : #NEWLINE# #INDENT# ROLE = 'role' #NEWLINE# acl = self . _makeOne ( ) #NEWLINE# acl . loaded = True #NEWLINE# entity = acl . entity_from_dict ( { #NEWLINE# #INDENT# 'entity' : 'allUsers' , #NEWLINE# 'role' : ROLE , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( entity . type , 'allUsers' ) #NEWLINE# self . assertEqual ( entity . identifier , None ) #NEWLINE# self . assertEqual ( entity . get_roles ( ) , set ( [ ROLE ] ) ) #NEWLINE# self . assertEqual ( list ( acl ) , [ { #NEWLINE# #INDENT# 'entity' : 'allUsers' , #NEWLINE# 'role' : ROLE , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# self . assertEqual ( list ( acl . get_entities ( ) ) , [ entity ] )