def METHOD_NAME(self):
    self.optimizer = SkOptOptimizer(limit_in_minutes=0.05, n_configurations=1000)  # 3 seconds
    self.optimizer.prepare(pipeline_elements=self.pipeline_elements, maximize_metric=True)
    configs = []
    start = time.time()
    for config in self.optimizer.ask:
        configs.append(config)
        time.sleep(0.005)
    stop = time.time()
    self.assertAlmostEqual(stop-start, 3, 0)