code: def testBuildFeedWeekly(self):
      with common.TmpDir() as tmpPath:
          instrument = "AAPL"
          bf = quandl.build_feed(
              "WIKI",
              [instrument],
              2010,
              2010,
              tmpPath,
              bar.Frequency.WEEK,
              authToken=QUANDL_API_KEY,
          )
          bf.loadAll()
          # Quandl used to report 2010-1-3 as the first week of 2010.
          self.assertTrue(
              bf[instrument][0].getDateTime()
              in [
                  datetime.datetime(2010, 1, 3),
                  datetime.datetime(2010, 1, 10),
              ]
          )
          self.assertEquals(
              bf[instrument][-1].getDateTime(),
              datetime.datetime(2010, 12, 26),
          )
          self.assertEquals(bf[instrument][-1].getOpen(), 325.0)
          self.assertEquals(bf[instrument][-1].getHigh(), 325.15)
          self.assertEquals(bf[instrument][-1].getLow(), 323.17)
          self.assertEquals(bf[instrument][-1].getClose(), 323.6)
          self.assertEquals(bf[instrument][-1].getVolume(), 7969900)
          self.assertEquals(bf[instrument][-1].getPrice(), 323.6)
          # Not checking against a specific value since this is going to change
          # as time passes by.
          self.assertNotEquals(bf[instrument][-1].getAdjClose(), None)
  
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 7 for calling the ToolsTestCase obj's underlying member method code with example usage: obj.testBuildFeedWeekly() without return types