#NEWLINE# def test_knows_that_user_permissions_take_precedence_over_user_global_permissions( self ) : #NEWLINE# #INDENT# user = UserFactory . create ( ) #NEWLINE# assign_perm ( 'can_read_forum' , user , None ) #NEWLINE# assign_perm ( 'can_read_forum' , user , user . forum , has_perm = False ) #NEWLINE# checker = ForumPermissionChecker ( user ) #NEWLINE# assert ( not checker . has_perm ( 'can_read_forum' , self . forum ) )