def test_no_truncate_crval_try2():
 w = wcs.WCS(naxis=3)
 w.wcs.crval = [50, 50, 212345678000.0]
 w.wcs.cdelt = [1e-05, 1e-05, 100000.0]
 w.wcs.ctype = [u'RA---SIN', u'DEC--SIN', u'FREQ']
 w.wcs.cunit = [u'deg', u'deg', u'Hz']
 w.wcs.crpix = [1, 1, 1]
 w.wcs.restfrq = 234000000000.0
 w.wcs.set()
 header = w.to_header()
 for ii in range(3):
  assert (header[u'CRVAL{0}'.format((ii + 1))] == w.wcs.crval[ii])
  assert (header[u'CDELT{0}'.format((ii + 1))] == w.wcs.cdelt[ii])

def test_no_truncate_crval_try2 ( ) : w = wcs . WCS ( naxis = 3 ) w . wcs . crval = [ 50 , 50 , 212345678000.0 ] w . wcs . cdelt = [ 1e-05 , 1e-05 , 100000.0 ] w . wcs . ctype = [ u'RA---SIN' , u'DEC--SIN' , u'FREQ' ] w . wcs . cunit = [ u'deg' , u'deg' , u'Hz' ] w . wcs . crpix = [ 1 , 1 , 1 ] w . wcs . restfrq = 234000000000.0 w . wcs . set ( ) header = w . to_header ( ) for ii in range ( 3 ) : assert ( header [ u'CRVAL{0}' . format ( ( ii + 1 ) ) ] == w . wcs . crval [ ii ] ) assert ( header [ u'CDELT{0}' . format ( ( ii + 1 ) ) ] == w . wcs . cdelt [ ii ] )
regression test for URL .