def test_filter_matches_type_and_module(django_sending_elasticapm_client): from tests.contrib.django.fake1 import FakeException try: raise FakeException('foo') except FakeException: django_sending_elasticapm_client.capture('Exception') assert len(django_sending_elasticapm_client.httpserver.requests) == 0
def test_filter_matches_type_and_module(self, send_encoded): try: from tests.contrib.django.fake1 import FakeException raise FakeException('foo') except: self.client.capture('Exception') self.assertEquals(send_encoded.call_count, 0)