'Test that can_trade will return False for a sid if it is restricted
on that dt'

def test_can_trade_restricted(self):

    minutes_to_check = [(pd.Timestamp('2016-01-05', tz='UTC'), False), (pd.Timestamp('2016-01-06', tz='UTC'), False), (pd.Timestamp('2016-01-07', tz='UTC'), True)]
    rlm = HistoricalRestrictions([Restriction(1, str_to_ts('2016-01-05'), RESTRICTION_STATES.FROZEN), Restriction(1, str_to_ts('2016-01-07'), RESTRICTION_STATES.ALLOWED)])
    for info in minutes_to_check:
        bar_data = self.create_bardata(simulation_dt_func=(lambda : info[0]), restrictions=rlm)
        self.assertEqual(bar_data.can_trade(self.ASSET1), info[1])
