Пример #1
0
    def test_unpatch(self):
        lamb = boto.awslambda.connect_to_region("us-east-2")
        Pin(service=self.TEST_SERVICE, tracer=self.tracer).onto(lamb)
        unpatch()

        # multiple calls
        lamb.list_functions()
        spans = self.pop_spans()
        assert not spans, spans
Пример #2
0
    def test_unpatch(self):
        lamb = boto.awslambda.connect_to_region("us-east-2")
        tracer = get_dummy_tracer()
        writer = tracer.writer
        Pin(service=self.TEST_SERVICE, tracer=tracer).onto(lamb)
        unpatch()

        # multiple calls
        lamb.list_functions()
        spans = writer.pop()
        assert not spans, spans
Пример #3
0
    def test_unpatch(self):
        lamb = boto.awslambda.connect_to_region("us-east-2")
        tracer = get_dummy_tracer()
        writer = tracer.writer
        Pin(service=self.TEST_SERVICE, tracer=tracer).onto(lamb)
        unpatch()

        # multiple calls
        lamb.list_functions()
        spans = writer.pop()
        assert not spans, spans