def test_printwcs():
 h = get_pkg_data_contents(u'spectra/orion-freq-1.hdr', encoding=u'binary')
 w = wcs.WCS(h)
 w.printwcs()
 h = get_pkg_data_contents(u'data/3d_cd.hdr', encoding=u'binary')
 w = wcs.WCS(h)
 w.printwcs()

def test_printwcs ( ) : h = get_pkg_data_contents ( u'spectra/orion-freq-1.hdr' , encoding = u'binary' ) w = wcs . WCS ( h ) w . printwcs ( ) h = get_pkg_data_contents ( u'data/3d_cd.hdr' , encoding = u'binary' ) w = wcs . WCS ( h ) w . printwcs ( )
just make sure that it runs .