Ejemplo n.º 1
0
def test_name_correction():
    nt.assert_equal(ms._stat_name('foo', 'raw'), 'foo')
    nt.assert_equal(ms._stat_name('foos', 'raw'), 'foo')
    nt.assert_equal(ms._stat_name('foos', 'bar'), 'bar_foo')
    nt.assert_equal(ms._stat_name('foos', 'total'), 'total_foo')
    nt.assert_equal(ms._stat_name('soma_radii', 'total'), 'total_soma_radius')
    nt.assert_equal(ms._stat_name('soma_radii', 'raw'), 'soma_radius')
Ejemplo n.º 2
0
def test_name_correction():
    nt.assert_equal(ms._stat_name('foo', 'raw'), 'foo')
    nt.assert_equal(ms._stat_name('foos', 'raw'), 'foo')
    nt.assert_equal(ms._stat_name('foos', 'bar'), 'bar_foo')
    nt.assert_equal(ms._stat_name('foos', 'total'), 'total_foo')
    nt.assert_equal(ms._stat_name('soma_radii', 'total'), 'total_soma_radius')
    nt.assert_equal(ms._stat_name('soma_radii', 'raw'), 'soma_radius')
Ejemplo n.º 3
0
def test_name_correction():
    assert ms._stat_name('foo', 'raw') == 'foo'
    assert ms._stat_name('foos', 'raw') == 'foo'
    assert ms._stat_name('foos', 'bar') == 'bar_foo'
    assert ms._stat_name('foos', 'total') == 'total_foo'
    assert ms._stat_name('soma_radii', 'total') == 'total_soma_radius'
    assert ms._stat_name('soma_radii', 'raw') == 'soma_radius'