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_admin_Command.TestCommand Class Reference
Inheritance diagram for tests.test_admin_Command.TestCommand:
Collaboration diagram for tests.test_admin_Command.TestCommand:

Public Member Functions

def setUp (self)
 
def tearDown (self)
 
def testConstructorSettings (self)
 
def testGenerateBody (self)
 

Public Attributes

 command
 

Detailed Description

Definition at line 14 of file test_admin_Command.py.

Member Function Documentation

◆ setUp()

def tests.test_admin_Command.TestCommand.setUp (   self)

Definition at line 17 of file test_admin_Command.py.

17  def setUp(self):
18  self.command = None
19 
20 

◆ tearDown()

def tests.test_admin_Command.TestCommand.tearDown (   self)

Definition at line 21 of file test_admin_Command.py.

21  def tearDown(self):
22  pass
23 
24 

◆ testConstructorSettings()

def tests.test_admin_Command.TestCommand.testConstructorSettings (   self)

Definition at line 25 of file test_admin_Command.py.

25  def testConstructorSettings(self):
26  self.command = Command()
27  self.assertEqual(type(self.command.getParams()), type([]), ">> param field type not list")
28  self.assertEqual(len(self.command.getParams()), 0, ">> param field size != 0")
29 
30 

◆ testGenerateBody()

def tests.test_admin_Command.TestCommand.testGenerateBody (   self)

Definition at line 31 of file test_admin_Command.py.

31  def testGenerateBody(self):
32  params = ["22", 55, 44]
33  commandName = "ECHO"
34  self.command = Command(commandName, params)
35  ret = self.command.generateBody()
36  self.assertEqual(ret, standartString, ">> wrong ret")
37 
38 
def generateBody(self)
Main processing method, generate request body string, based on internal field - "param".
Definition: Command.py:59
Here is the call graph for this function:

Member Data Documentation

◆ command

tests.test_admin_Command.TestCommand.command

Definition at line 18 of file test_admin_Command.py.


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