def test_ci_to_errsize():
 cis = [[0.5, 0.5], [1.25, 1.5]]
 heights = [1, 1.5]
 actual_errsize = np.array([[0.5, 1], [0.25, 0]])
 test_errsize = utils.ci_to_errsize(cis, heights)
 npt.assert_array_equal(actual_errsize, test_errsize)

def test_ci_to_errsize ( ) : cis = [ [ 0.5 , 0.5 ] , [ 1.25 , 1.5 ] ] heights = [ 1 , 1.5 ] actual_errsize = np . array ( [ [ 0.5 , 1 ] , [ 0.25 , 0 ] ] ) test_errsize = utils . ci_to_errsize ( cis , heights ) npt . assert_array_equal ( actual_errsize , test_errsize )
test behavior of ci_to_errsize .