def test_stress_functions(self):
    for _ in range(10000):
        tree = DomainTree(domains=self.d0, min_split=0, depth_max=5)
    tree = DomainTree(domains=self.d0, min_split=0, depth_max=10)
    for _ in range(10000):
        tree.compute_f({'x0': random.random()})
    with self.assertRaises(NodeNotFoundException):
        for _ in range(10000):
            tree.compute_f({'x0': (random.random() + 1)})
def test_stress_functions(self):
    for _ in range(10000):
        tree = DomainTree(domains=self.d0, min_split=0, depth_max=5)
    tree = DomainTree(domains=self.d0, min_split=0, depth_max=10)
    for _ in range(10000):
        tree.compute_f({'x0': random.random()})
    with self.assertRaises(NodeNotFoundException):
        for _ in range(10000):
            tree.compute_f({'x0': (random.random() + 1)})