'Sampling returns results when probes succeed.'

@capture_logging(None)
def test_good_probes(self, logger):

    samples_ready = benchmark(FakeScenario(), FakeOperation(repeat(True)), FakeMetric(count(5)), 3)
    def check(outputs):
        self.assertEqual(outputs, ([{'success': True, 'value': x} for x in [5, 6, 7]], None))
    samples_ready.addCallback(check)
    return samples_ready
