from nose import with_setup import abp def setup(): global g g = abp.GraphRegister(10) g.add_edge(0,1) g.add_edge(1,2) g.add_edge(2,0) @with_setup(setup) def test_adding(): s = abp.Stabilizer(g) print s