def wait_for_disconnections(self):

    def disconnected():
        return all((node.closed for node in self.test_nodes))
    return wait_until(disconnected, timeout=10)
def wait_for_disconnections(self):

    def disconnected():
        return all((node.closed for node in self.test_nodes))
    return wait_until(disconnected, timeout=10)