def test_singleton(self): s0 = NullAnno(1, 5) g = EnclosureGraph([s0]) self.assertEqual([s0.local_id()], g.nodes()) self.assertEqual([], g.inside(s0)) self.assertEqual([], g.outside(s0))
def test_trivial(self): g = EnclosureGraph([]) self.assertEqual(0, len(g.nodes()))