def test_create_reply_empty_request(): request = Message() request.topic = "topic" reply = request.create_reply() assert reply.topic == request.reply_to assert reply.correlation_id == request.correlation_id assert reply.content_type == request.content_type
def test_create_reply(): request = Message() request.topic = "topic" request.reply_to = "reply_to" request.content_type = ContentType.JSON reply = request.create_reply() assert reply.topic == request.reply_to assert reply.correlation_id == request.correlation_id assert reply.content_type == request.content_type