#NEWLINE# def test_returns_403_if_not_allowed( self ) : #NEWLINE# #INDENT# data_source = self . factory . create_data_source ( group = self . factory . create_group ( ) ) #NEWLINE# query = self . factory . create_query ( data_source = data_source ) #NEWLINE# alert = self . factory . create_alert ( query = query ) #NEWLINE# rv = self . make_request ( 'get' , '/api/alerts/{}' . format ( query . id ) ) #NEWLINE# self . assertEqual ( rv . status_code , 403 )