code: def testCommandLineDailyCreatingDir(self):
      tmpPath = tempfile.mkdtemp()
      shutil.rmtree(tmpPath)
      try:
          instrument = "ORCL"
          subprocess.call(
              [
                  "python",
                  "-m",
                  "pyalgotrade.tools.quandl",
                  "--source-code=WIKI",
                  "--table-code=%s" % instrument,
                  "--from-year=2010",
                  "--to-year=2010",
                  "--storage=%s" % tmpPath,
                  "--auth-token=%s" % QUANDL_API_KEY,
              ]
          )
          bf = quandlfeed.Feed()
          bf.addBarsFromCSV(
              instrument,
              os.path.join(tmpPath, "WIKI-ORCL-2010-quandl.csv"),
          )
          bf.loadAll()
          self.assertEquals(
              bf[instrument][-1].getDateTime(),
              datetime.datetime(2010, 12, 31),
          )
          self.assertEquals(bf[instrument][-1].getOpen(), 31.22)
          self.assertEquals(bf[instrument][-1].getHigh(), 31.33)
          self.assertEquals(bf[instrument][-1].getLow(), 30.93)
          self.assertEquals(bf[instrument][-1].getClose(), 31.3)
          self.assertEquals(bf[instrument][-1].getVolume(), 11716300)
          self.assertEquals(bf[instrument][-1].getPrice(), 31.3)
      finally:
          shutil.rmtree(tmpPath)
  
imports: import os
  import datetime
  import tempfile
  import shutil
  import subprocess
  import six
  from .None import common
  from pyalgotrade.tools import quandl
  from pyalgotrade import bar
  from pyalgotrade.barfeed import quandlfeed
label_desc: Use image node_id 13 for calling the ToolsTestCase obj's underlying member method code with example usage: obj.testCommandLineDailyCreatingDir() without return types