HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
test_transport_Request.py
Go to the documentation of this file.
1 '''
2 Created on Feb 5, 2014
3 
4 @author: igor
5 '''
6 import unittest
7 from transport.Request import Request
8 
9 
10 class TestRequest(unittest.TestCase):
11 
12 
13  def setUp(self):
14  self.request = Request("1")
15 
16 
18  send_data = ["1", "part1", "part2"]
19  self.request.add_data(send_data[1])
20  self.request.add_data(send_data[2])
21 
22  self.assertEqual(self.request.get_body(), send_data, "accumulation is wrong")
It's a wrapper similar to zmsg.hpp in sense of encapsulation of hce message structure.
Definition: Request.py:11