#NEWLINE# def test_update_active_link( self ) : #NEWLINE# #INDENT# self . link . active = False #NEWLINE# self . link . save ( file_id = r . test_file . id ) #NEWLINE# r = requests . get ( self . link . url ) #NEWLINE# self . assertFalse ( self . link . active ) #NEWLINE# self . assertIn ( r . status_code , [ 403 , 404 ] )