#NEWLINE# def test_algo_with_rl_violation( self ) : #NEWLINE# #INDENT# algo = RestrictedAlgoWithoutCheck ( symbol = 'BZQ' , sim_params = self . sim_params , env = self . env ) #NEWLINE# with self . assertRaises ( TradingControlViolation ) as ctx : #NEWLINE# #INDENT# algo . run ( self . data_portal ) #NEWLINE# #UNINDENT# self . check_algo_exception ( self , ctx , 0 ) #NEWLINE# algo = RestrictedAlgoWithoutCheck ( symbol = 'JFT' , sim_params = self . sim_params , env = self . env ) #NEWLINE# with self . assertRaises ( TradingControlViolation ) as ctx : #NEWLINE# #INDENT# algo . run ( self . data_portal ) #NEWLINE# #UNINDENT# self . check_algo_exception ( algo , ctx , 0 )