def setUp(): global tossim, radio, a, b, c # base tossim = TossimBase(_tossim) radio = tossim.radio() # fetch unlinked nodes def unlink_all(x): for other in x.neighbors(): x.unlink_both(other) a, b, c = tossim[[0, 1, 2]] for x in [a, b, c]: unlink_all(x) assertEquals([], list(a.neighbors()))
def setUp(): global tossim, radio, a, b, c # base tossim = TossimBase(_tossim) radio = tossim.radio() # fetch unlinked nodes def unlink_all(x): for other in x.neighbors(): x.unlink_both(other) a, b, c = tossim[[0, 1, 2]] for x in [a, b, c]: unlink_all(x) assertEquals([], list(a.neighbors()))