'Add a new restriction, run a test long after both
knowledge dates, make sure stock from original restriction
set is still disallowed.'

def test_algo_with_rl_violation_cumulative(self):

    sim_params = factory.create_simulation_parameters(start=(self.start + timedelta(days=7)), num_days=4)
    with security_list_copy():
        add_security_data(['AAPL'], [])
        algo = RestrictedAlgoWithoutCheck(symbol='BZQ', sim_params=sim_params, env=self.env)
        with self.assertRaises(TradingControlViolation) as ctx:
            algo.run(self.data_portal)
        self.check_algo_exception(algo, ctx, 0)
