def test_n_leaves(): nt.assert_equal(_nf.n_leaves(Neurite(s0)), 5) nt.assert_equal(_nf.n_leaves(Neurite(s1)), 3) nt.assert_equal(_nf.n_leaves(Neurite(s2)), 1) nt.assert_equal(_nf.n_leaves(Neurite(s3)), 1) nt.assert_equal(_nf.n_leaves(Neurite(s4)), 2) nt.assert_equal(_nf.n_leaves(Neurite(s5)), 1) nt.assert_equal(_nf.n_leaves(Neurite(s6)), 1) nt.assert_equal(_nf.n_leaves(Neurite(s7)), 1)
def test_n_leaves(): nt.assert_equal(_nf.n_leaves(SIMPLE.neurites[0]), 2) nt.assert_equal(_nf.n_leaves(SIMPLE.neurites[1]), 2) nt.assert_equal(_nf.n_leaves(SIMPLE.neurites), 4)