def test_no_truncate_crval():
 w = wcs.WCS(naxis=3)
 w.wcs.crval = [50, 50, 212345678000.0]
 w.wcs.cdelt = [0.001, 0.001, 100000000.0]
 w.wcs.ctype = [u'RA---TAN', u'DEC--TAN', u'FREQ']
 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 ( ) : w = wcs . WCS ( naxis = 3 ) w . wcs . crval = [ 50 , 50 , 212345678000.0 ] w . wcs . cdelt = [ 0.001 , 0.001 , 100000000.0 ] w . wcs . ctype = [ u'RA---TAN' , u'DEC--TAN' , u'FREQ' ] 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 .