#NEWLINE# def test_lock_page_for_superuser( self ) : #NEWLINE# #INDENT# user = get_user_model ( ) . objects . get ( username = 'superuser' ) #NEWLINE# christmas_page = EventPage . objects . get ( url_path = '/home/events/christmas/' ) #NEWLINE# locked_page = Page . objects . get ( url_path = '/home/my-locked-page/' ) #NEWLINE# perms = UserPagePermissionsProxy ( user ) . for_page ( christmas_page ) #NEWLINE# locked_perms = UserPagePermissionsProxy ( user ) . for_page ( locked_page ) #NEWLINE# self . assertTrue ( perms . can_lock ( ) ) #NEWLINE# self . assertFalse ( locked_perms . can_unpublish ( ) )