@pytest.mark.skipif(u'not HAS_SCIPY')
def test_scipy_poisson_limit():
 assert_allclose(funcs._scipy_kraft_burrows_nousek(5.0, 2.5, 0.99), (0, 10.67), rtol=0.001)
 conf = funcs.poisson_conf_interval([5.0, 6.0], u'kraft-burrows-nousek', background=[2.5, 2.0], conflevel=[0.99, 0.9])
 assert_allclose(conf[:, 0], (0, 10.67), rtol=0.001)
 assert_allclose(conf[:, 1], (0.81, 8.99), rtol=0.005)

@ pytest . mark . skipif ( u'not HAS_SCIPY' ) def test_scipy_poisson_limit ( ) : assert_allclose ( funcs . _scipy_kraft_burrows_nousek ( 5.0 , 2.5 , 0.99 ) , ( 0 , 10.67 ) , rtol = 0.001 ) conf = funcs . poisson_conf_interval ( [ 5.0 , 6.0 ] , u'kraft-burrows-nousek' , background = [ 2.5 , 2.0 ] , conflevel = [ 0.99 , 0.9 ] ) assert_allclose ( conf [ : , 0 ] , ( 0 , 10.67 ) , rtol = 0.001 ) assert_allclose ( conf [ : , 1 ] , ( 0.81 , 8.99 ) , rtol = 0.005 )
test that the lower-level routine gives the snae number .