#NEWLINE# def test_permission_manager( self ) : #NEWLINE# #INDENT# '\n        Test page permission manager working on a subpage\n        ' #NEWLINE# page_b = create_page ( 'page_b' , 'nav_playground.html' , 'en' , created_by = self . user_super ) #NEWLINE# assign_user_to_page ( page_b , self . user_normal , can_view = True , can_change = True ) #NEWLINE# cached_permissions = get_permission_cache ( self . user_normal , 'can_change' ) #NEWLINE# self . assertIsNone ( cached_permissions ) #NEWLINE# live_permissions = Page . permissions . get_change_id_list ( self . user_normal , Site . objects . get_current ( ) ) #NEWLINE# cached_permissions_permissions = get_permission_cache ( self . user_normal , 'can_change' ) #NEWLINE# self . assertEqual ( live_permissions , [ page_b . id ] ) #NEWLINE# self . assertEqual ( cached_permissions_permissions , live_permissions ) #NEWLINE# self . home_page . save ( ) #NEWLINE# cached_permissions = get_permission_cache ( self . user_normal , 'can_change' ) #NEWLINE# self . assertIsNone ( cached_permissions )