TST: Move assert inside context manager
TST: Move assert inside context manager

larrybradley/astropy,StuartLittlefair/astropy,mhvk/astropy,MSeifert04/astropy,astropy/astropy,astropy/astropy,stargaser/astropy,MSeifert04/astropy,lpsinger/astropy,dhomeier/astropy,StuartLittlefair/astropy,larrybradley/astropy,aleksandr-bakanov/astropy,dhomeier/astropy,pllim/astropy,dhomeier/astropy,stargaser/astropy,saimn/astropy,astropy/astropy,bsipocz/astropy,aleksandr-bakanov/astropy,larrybradley/astropy,pllim/astropy,larrybradley/astropy,saimn/astropy,MSeifert04/astropy,dhomeier/astropy,pllim/astropy,saimn/astropy,lpsinger/astropy,lpsinger/astropy,stargaser/astropy,mhvk/astropy,StuartLittlefair/astropy,mhvk/astropy,pllim/astropy,aleksandr-bakanov/astropy,stargaser/astropy,dhomeier/astropy,aleksandr-bakanov/astropy,bsipocz/astropy,saimn/astropy,MSeifert04/astropy,astropy/astropy,bsipocz/astropy,bsipocz/astropy,lpsinger/astropy,mhvk/astropy,mhvk/astropy,pllim/astropy,lpsinger/astropy,larrybradley/astropy,astropy/astropy,StuartLittlefair/astropy,saimn/astropy,StuartLittlefair/astropy