#NEWLINE# def test_lock_page_for_moderator( self ) : #NEWLINE# #INDENT# user = get_user_model ( ) . objects . get ( username = 'eventmoderator' ) #NEWLINE# christmas_page = EventPage . objects . get ( url_path = '/home/events/christmas/' ) #NEWLINE# perms = UserPagePermissionsProxy ( user ) . for_page ( perms ) #NEWLINE# self . assertTrue ( perms . can_lock ( ) )