Fixes trading day generation logic in test source.
Fixes trading day generation logic in test source.

This uses more of @fawce's original logic from record_var branch.

TODO: Add unit test to ensure that this function generates only
market days.

MonoCloud/zipline,florentchandelier/zipline,jimgoo/zipline-fork,ronalcc/zipline,aajtodd/zipline,gwulfs/zipline,iamkingmaker/zipline,YuepengGuo/zipline,zhoulingjun/zipline,humdings/zipline,bartosh/zipline,wubr2000/zipline,keir-rex/zipline,keir-rex/zipline,wilsonkichoi/zipline,quantopian/zipline,wilsonkichoi/zipline,semio/zipline,quantopian/zipline,grundgruen/zipline,CDSFinance/zipline,ronalcc/zipline,zhoulingjun/zipline,stkubr/zipline,mattcaldwell/zipline,cmorgan/zipline,kmather73/zipline,michaeljohnbennett/zipline,dkushner/zipline,alphaBenj/zipline,dhruvparamhans/zipline,otmaneJai/Zipline,sketchytechky/zipline,YuepengGuo/zipline,semio/zipline,joequant/zipline,enigmampc/catalyst,nborggren/zipline,chrjxj/zipline,Scapogo/zipline,dmitriz/zipline,enigmampc/catalyst,otmaneJai/Zipline,erikness/AlephOne,CDSFinance/zipline,CarterBain/AlephNull,umuzungu/zipline,StratsOn/zipline,florentchandelier/zipline,magne-max/zipline-ja,jordancheah/zipline,erikness/AlephOne,davidastephens/zipline,joequant/zipline,sketchytechky/zipline,alphaBenj/zipline,MonoCloud/zipline,morrisonwudi/zipline,dkushner/zipline,Scapogo/zipline,dhruvparamhans/zipline,AlirezaShahabi/zipline,chrjxj/zipline,humdings/zipline,dmitriz/zipline,jimgoo/zipline-fork,AlirezaShahabi/zipline,mattcaldwell/zipline,stkubr/zipline,michaeljohnbennett/zipline,nborggren/zipline,euri10/zipline,bartosh/zipline,davidastephens/zipline,cmorgan/zipline,euri10/zipline,aajtodd/zipline,grundgruen/zipline,CarterBain/AlephNull,wubr2000/zipline,iamkingmaker/zipline,ChinaQuants/zipline,morrisonwudi/zipline,ChinaQuants/zipline,DVegaCapital/zipline,gwulfs/zipline,umuzungu/zipline,StratsOn/zipline,kmather73/zipline,magne-max/zipline-ja,DVegaCapital/zipline,jordancheah/zipline