'Test that values from "MagicMock"ed methods can be passed to record.
Relevant for our basic/validation and methods like history, which
will end up returning a MagicMock instead of a DataFrame.'

def test_algo_record_allow_mock(self):

    test_algo = TradingAlgorithm(script=record_variables, sim_params=self.sim_params, env=self.env)
    set_algo_instance(test_algo)
    test_algo.record(foo=MagicMock())
