#NEWLINE# def test_get_without_required_permission_from_state( self ) : #NEWLINE# #INDENT# motion = Motion . objects . create ( title = 'motion_title_zthguis8qqespgknme52' ) #NEWLINE# motion . state . required_permission_to_see = 'motions.can_manage' #NEWLINE# motion . state . save ( ) #NEWLINE# response = self . registered_client . get ( '/motions/1/pdf/' ) #NEWLINE# self . assertEqual ( response . status_code , 403 )