code: def testFeed(self):
      values = [
          (
              datetime.datetime.now() + datetime.timedelta(seconds=i),
              {"i": i},
          )
          for i in xrange(100)
      ]
  
      feed = memfeed.MemFeed()
      feed.addValues(values)
  
      # Check that the dataseries are available after adding values.
      self.assertTrue("i" in feed)
      self.assertEqual(len(feed["i"]), 0)
      self.assertFalse("dt" in feed)
  
      disp = dispatcher.Dispatcher()
      disp.addSubject(feed)
      disp.run()
  
      self.assertTrue("i" in feed)
      self.assertFalse("dt" in feed)
      self.assertEqual(feed["i"][0], 0)
      self.assertEqual(feed["i"][-1], 99)
  
file_path: pyalgotrade/testcases/memfeed_test.py
imports: import datetime
  from six.moves import xrange
  from .None import common
  from .None import feed_test
  from pyalgotrade.feed import memfeed
  from pyalgotrade import dispatcher
label_desc: Use image node_id 2 for calling the MemFeedTestCase obj's underlying member method code with example usage: obj.testFeed() without return types