code: def __buildAcceptedLimitOrder(self, action, limitPrice, quantity):
      ret = broker.LimitOrder(
          action, "orcl", limitPrice, quantity, DefaultTraits()
      )
      self.assertEquals(ret.getSubmitDateTime(), None)
      ret.switchState(broker.Order.State.SUBMITTED)
      ret.setSubmitted(1, datetime.datetime.now())
      self.assertNotEquals(ret.getSubmitDateTime(), None)
      ret.switchState(broker.Order.State.ACCEPTED)
      return ret
  
file_path: pyalgotrade/testcases/broker_test.py
imports: import datetime
  from .None import common
  from pyalgotrade import broker
label_desc: Use image node_id 1 for calling the OrderTestCase obj's underlying member method code with example usage: obj.__buildAcceptedLimitOrder(action, limitPrice, quantity) and returns: ret