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 )
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
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
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)
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)
def test_login(self): return SessionTester.test_login(self)
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)