def init(context): assert str(get_next_trading_date('2017-01-03').date()) == '2017-01-04' assert str(get_next_trading_date('2007-01-03').date()) == '2007-01-04'
def handle_bar(context, bar_dict): assert str(get_next_trading_date('2017-01-03').date()) == '2017-01-04' assert str(get_next_trading_date('2007-01-03').date()) == '2007-01-04'