def test_not_foundbasic(self):
    url_404 = 'http://httpbin.org/status/404'
    httpretty.register_uri(httpretty.GET, url_404, status=404)
    result = self.perform_request(url_404)
    self.assertEqual(result.status_code, 404)
    span = self.assert_span()
    self.assertEqual(span.attributes.get(SpanAttributes.HTTP_STATUS_CODE), 404)
    self.assertIs(span.status.status_code, trace.StatusCode.ERROR)
def test_not_foundbasic(self):
    url_404 = 'http://httpbin.org/status/404'
    httpretty.register_uri(httpretty.GET, url_404, status=404)
    result = self.perform_request(url_404)
    self.assertEqual(result.status_code, 404)
    span = self.assert_span()
    self.assertEqual(span.attributes.get(SpanAttributes.HTTP_STATUS_CODE), 404)
    self.assertIs(span.status.status_code, trace.StatusCode.ERROR)