def test_choynowski(self): e = np.array([30, 25, 25, 15, 33, 21, 30, 20]) b = np.array([100, 100, 110, 90, 100, 90, 110, 90]) n = 2 exp_choy = np.array([0.30437751, 0.29367033]) np.testing.assert_array_almost_equal(exp_choy, sm.choynowski(e, b, n))