Пример #1
0
	def get_msg(self):
		"""
		Pop message from message queue and return its payload
		"""
		#msg = self.red.blpop('incoming', timeout=0)
		msg = db.get_msg()
		#payload = self.get_payload(msg)
		#return json.loads(payload)
		return msg
Пример #2
0
    def test_04_xml_authorization_tsys(self):
        run_in_background(post_xml_authorization)

        msg = db.get_msg()

        assert msg is not None
        print(msg)

        txn_type = msg.iterkeys().next()
        guid = str(msg[txn_type]["guid"])

        core_rsp = create_core_rsp(guid)

        db.set(guid, core_rsp)

        http_rsp = get_result()

        assert http_rsp is not None