code: def testLoadFilterFromAndTo(self):
      feed = barfeed.CSVTradeFeed()
      feed.addBarsFromCSV(
          common.get_data_file_path("bitstampUSD.csv"),
          "bitstampUSD",
          fromDateTime=dt.as_utc(datetime.datetime(2012, 5, 29)),
          toDateTime=datetime.datetime(2012, 5, 31),
      )
      loaded = [(dateTime, bars) for dateTime, bars in feed]
  
      self.assertEquals(len(loaded), 579)
  
      self.assertEquals(
          loaded[0][0],
          dt.as_utc(datetime.datetime(2012, 5, 29, 1, 47, 52)),
      )
      self.assertEquals(
          loaded[0][1]["bitstampUSD"].getDateTime(),
          dt.as_utc(datetime.datetime(2012, 5, 29, 1, 47, 52)),
      )
      self.assertEquals(loaded[0][1]["bitstampUSD"].getClose(), 5.07)
      self.assertEquals(
          loaded[0][1]["bitstampUSD"].getVolume(), 1.39081288
      )
  
      self.assertEquals(
          loaded[-1][0],
          dt.as_utc(datetime.datetime(2012, 5, 30, 23, 49, 21)),
      )
      self.assertEquals(
          loaded[-1][1]["bitstampUSD"].getDateTime(),
          dt.as_utc(datetime.datetime(2012, 5, 30, 23, 49, 21)),
      )
      self.assertEquals(loaded[-1][1]["bitstampUSD"].getClose(), 5.14)
      self.assertEquals(loaded[-1][1]["bitstampUSD"].getVolume(), 20)
  
file_path: pyalgotrade/testcases/btcharts_test.py
imports: import datetime
  from .None import common
  from pyalgotrade.bitcoincharts import barfeed
  from pyalgotrade.utils import dt
label_desc: Use image node_id 3 for calling the TestCase obj's underlying member method code with example usage: obj.testLoadFilterFromAndTo() without return types