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
tests.test_transport_Response.TestResponse Class Reference
Inheritance diagram for tests.test_transport_Response.TestResponse:
Collaboration diagram for tests.test_transport_Response.TestResponse:

Public Member Functions

def test_raise_protocol_exception_when_no_data (self)
 
def test_raise_protocol_exception_too_less_data (self)
 
def test_parse_valid_msg (self)
 

Detailed Description

Definition at line 12 of file test_transport_Response.py.

Member Function Documentation

◆ test_parse_valid_msg()

def tests.test_transport_Response.TestResponse.test_parse_valid_msg (   self)

Definition at line 27 of file test_transport_Response.py.

27  def test_parse_valid_msg(self):
28  msg = ["id", "body"]
29  response = Response(msg)
30  self.assertEqual(response.get_uid(), "id", "doesn't correct parse uid")
31  self.assertEqual(response.get_body(), "body", "doesn't correct parse body")
32 

◆ test_raise_protocol_exception_too_less_data()

def tests.test_transport_Response.TestResponse.test_raise_protocol_exception_too_less_data (   self)

Definition at line 21 of file test_transport_Response.py.

21  def test_raise_protocol_exception_too_less_data(self):
22  bad_msg = ["id"]
23  with self.assertRaises(ResponseFormatErr):
24  list(Response(bad_msg))
25 
26 

◆ test_raise_protocol_exception_when_no_data()

def tests.test_transport_Response.TestResponse.test_raise_protocol_exception_when_no_data (   self)

Definition at line 15 of file test_transport_Response.py.

15  def test_raise_protocol_exception_when_no_data(self):
16  bad_msg = list()
17  with self.assertRaises(ResponseFormatErr):
18  list(Response(bad_msg))
19 
20 

The documentation for this class was generated from the following file: