code: def testDispatchOrder(self):
      values = []
      now = datetime.datetime.now()
      feed1 = NonRealtimeFeed([now], 0)
      feed2 = RealtimeFeed([now + datetime.timedelta(seconds=1)], None)
      feed1.getEvent().subscribe(lambda x: values.append(x))
      feed2.getEvent().subscribe(lambda x: values.append(x))
  
      disp = dispatcher.Dispatcher()
      disp.addSubject(feed2)
      disp.addSubject(feed1)
      self.assertEqual(disp.getSubjects(), [feed1, feed2])
      disp.run()
      # Check that although feed2 is realtime, feed1 was dispatched before.
      self.assertTrue(values[0] < values[1])
  
imports: import datetime
  import copy
  from six.moves import xrange
  from .None import common
  from pyalgotrade import observer
  from pyalgotrade import dispatcher
label_desc: Use image node_id 7 for calling the DispatcherTestCase obj's underlying member method code with example usage: obj.testDispatchOrder() without return types