示例#1
0
 def setUp(self):
     SessionTester.setUp(self)
     self.ac.dispatchDict[ fix.OrderSingle ] = self.onAcceptorOrderSingle
     self.ic.dispatchDict[ fix.Reject ]      = self.onBusinessMessageReject
     self.businessMessageReject = None
     self.squirrelOrder = None
     self.acceptorSession.onIntegrityException = self.onAcceptorIntegrityException
     self.acceptorSession.onBusinessMessageReject = self.onAcceptorBusinessReject
     self.initiatorSession.compile_message = MethodType( compileMessageNoPersist,self.initiatorSession )
示例#2
0
 def setUp(self):
     SessionTester.setUp(self)
     self.sendingOrders = False
     self.ac.dispatchDict[fix.OrderSingle] = self.onAcceptorOrder
     self.orders = []
     self.ordersByClOrdID = {}
     randomOrders.orderID = 0
     randomOrders.clOrdID = 0
     self.acceptorStateChanges = []
     self.lastID = None
示例#3
0
 def setUp(self):
     SessionTester.setUp(self)
     self.sendingOrders = False
     self.ac.dispatchDict[ fix.OrderSingle ] = self.onAcceptorOrder
     self.orders = []
     self.ordersByClOrdID = {}
     randomOrders.orderID = 0
     randomOrders.clOrdID = 0
     self.acceptorStateChanges = []
     self.lastID = None
示例#4
0
 def setUp(self):
     SessionTester.setUp(self)
     self.ac.dispatchDict[fix.OrderSingle] = self.onAcceptorOrderSingle
     self.ic.dispatchDict[fix.Reject] = self.onBusinessMessageReject
     self.businessMessageReject = None
     self.squirrelOrder = None
     self.acceptorSession.onIntegrityException = self.onAcceptorIntegrityException
     self.acceptorSession.onBusinessMessageReject = self.onAcceptorBusinessReject
     self.initiatorSession.compile_message = MethodType(
         compileMessageNoPersist, self.initiatorSession)
示例#5
0
 def initiatorStateChange(self, oldState, newState):
     print "ISC %s %s"  % (oldState, newState)
     if newState.__class__==NormalMessageProcessing:
         reactor.callLater(0.5, self.sendMyDodgyMessage)
     SessionTester.initiatorStateChange( self, oldState, newState)
示例#6
0
 def test_login(self):
     return SessionTester.test_login(self)
示例#7
0
 def test_login(self):
     return SessionTester.test_login(self)
示例#8
0
 def initiatorStateChange(self, oldState, newState):
     print "ISC %s %s" % (oldState, newState)
     if newState.__class__ == NormalMessageProcessing:
         reactor.callLater(0.5, self.sendMyDodgyMessage)
     SessionTester.initiatorStateChange(self, oldState, newState)