code: def test_bundle(self):
      with open(
          test_resource_path("quandl_samples", "QUANDL_ARCHIVE.zip"),
          "rb",
      ) as quandl_response:
          self.responses.add(
              self.responses.GET,
              "https://file_url.mock.quandl",
              body=quandl_response.read(),
              content_type="application/zip",
              status=200,
          )
  
      url_map = {
          format_metadata_url(self.api_key): test_resource_path(
              "quandl_samples",
              "metadata.csv.gz",
          )
      }
  
      zipline_root = self.enter_instance_context(tmp_dir()).path
      environ = {
          "ZIPLINE_ROOT": zipline_root,
          "QUANDL_API_KEY": self.api_key,
      }
  
      with patch_read_csv(url_map):
          ingest("quandl", environ=environ)
  
      bundle = load("quandl", environ=environ)
      sids = 0, 1, 2, 3
      assert_equal(set(bundle.asset_finder.sids), set(sids))
  
      sessions = self.calendar.all_sessions
      actual = bundle.equity_daily_bar_reader.load_raw_arrays(
          self.columns,
          sessions[sessions.get_loc(self.start_date, "bfill")],
          sessions[sessions.get_loc(self.end_date, "ffill")],
          sids,
      )
      expected_pricing, expected_adjustments = self._expected_data(
          bundle.asset_finder,
      )
      assert_equal(actual, expected_pricing, array_decimal=2)
  
      adjs_for_cols = bundle.adjustment_reader.load_pricing_adjustments(
          self.columns,
          sessions,
          pd.Index(sids),
      )
  
      for column, adjustments, expected in zip(
          self.columns, adjs_for_cols, expected_adjustments
      ):
          assert_equal(
              adjustments,
              expected,
              msg=column,
          )
  
file_path: zipline/tests/data/bundles/test_quandl.py
imports: from __future__ import division
  import numpy
  import pandas
  import toolz.curried.operator
  from zipline import get_calendar
  from zipline.data.bundles import ingest, load, bundles
  from zipline.data.bundles.quandl import format_metadata_url, load_data_table
  from zipline.lib.adjustment import Float64Multiply
  from zipline.testing import test_resource_path, tmp_dir, patch_read_csv
  from zipline.testing.fixtures import ZiplineTestCase, WithResponses
  from zipline.testing.predicates import assert_equal
  from zipline.utils.functional import apply
label_desc: Use image node_id 2 for calling the QuandlBundleTestCase obj's underlying member method code with example usage: obj.test_bundle() without return types