def test_pmf_hist_basics():
 out = utils.pmf_hist(a_norm)
 assert_equal(len(out), 3)
 (x, h, w) = out
 assert_equal(len(x), len(h))
 a = np.arange(10)
 (x, h, w) = utils.pmf_hist(a, 10)
 nose.tools.assert_true(np.all((h == h[0])))

def test_pmf_hist_basics ( ) : out = utils . pmf_hist ( a_norm ) assert_equal ( len ( out ) , 3 ) ( x , h , w ) = out assert_equal ( len ( x ) , len ( h ) ) a = np . arange ( 10 ) ( x , h , w ) = utils . pmf_hist ( a , 10 ) nose . tools . assert_true ( np . all ( ( h == h [ 0 ] ) ) )
test the function to return barplot args for pmf hist .