def test_in_memory_reporter(): reporter = jaeger_client.reporter.InMemoryReporter() reporter.report_span({}) f = reporter.close() f.result() spans = reporter.get_spans() assert [{}] == spans