def test_bounds_check():
 w = wcs.WCS(naxis=2)
 w.wcs.ctype = [u'RA---CAR', u'DEC--CAR']
 w.wcs.cdelt = [10, 10]
 w.wcs.crval = [(-90), 90]
 w.wcs.crpix = [1, 1]
 w.wcs.bounds_check(False, False)
 (ra, dec) = w.wcs_pix2world(300, 0, 0)
 assert_allclose(ra, (-180))
 assert_allclose(dec, (-30))

def test_bounds_check ( ) : w = wcs . WCS ( naxis = 2 ) w . wcs . ctype = [ u'RA---CAR' , u'DEC--CAR' ] w . wcs . cdelt = [ 10 , 10 ] w . wcs . crval = [ ( - 90 ) , 90 ] w . wcs . crpix = [ 1 , 1 ] w . wcs . bounds_check ( False , False ) ( ra , dec ) = w . wcs_pix2world ( 300 , 0 , 0 ) assert_allclose ( ra , ( - 180 ) ) assert_allclose ( dec , ( - 30 ) )
test for #4957 .