'Test that calling order in initialize
will raise an error.'

def test_order_in_init(self):

    with self.assertRaises(OrderDuringInitialize):
        test_algo = TradingAlgorithm(script=call_order_in_init, sim_params=self.sim_params, env=self.env)
        test_algo.run(self.data_portal)
