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_app_BaseServerManager Namespace Reference

Classes

class  Matcher
 
class  TestBaseServerManager
 

Functions

def matchEvents (first, second)
 
def matchStatEvents (first, second)
 
def match_tcp_raw_events (first, second)
 

Variables

string FORMAT = '%(asctime)s - %(thread)ld - %(threadName)s - %(name)s - %(funcName)s - %(levelname)s - %(message)s'
 
 level
 
 DEBUG
 
 format
 

Detailed Description

Created on Feb 26, 2014

@author: igor

Function Documentation

◆ match_tcp_raw_events()

def tests.test_app_BaseServerManager.match_tcp_raw_events (   first,
  second 
)

Definition at line 50 of file test_app_BaseServerManager.py.

50 def match_tcp_raw_events(first, second):
51  return first.eventType == second.eventType and first.eventObj.__dict__ == second.eventObj.__dict__
52 
53 

◆ matchEvents()

def tests.test_app_BaseServerManager.matchEvents (   first,
  second 
)

Definition at line 38 of file test_app_BaseServerManager.py.

38 def matchEvents(first, second):
39  return first.uid == second.uid and first.eventType == second.eventType and\
40  first.eventObj == second.eventObj
41 
42 

◆ matchStatEvents()

def tests.test_app_BaseServerManager.matchStatEvents (   first,
  second 
)

Definition at line 43 of file test_app_BaseServerManager.py.

43 def matchStatEvents(first, second):
44  print first.eventObj.fields
45  print second.eventObj.fields
46  return first.uid == second.uid and first.eventType == second.eventType and\
47  first.eventObj.fields == second.eventObj.fields
48 
49 

Variable Documentation

◆ DEBUG

tests.test_app_BaseServerManager.DEBUG

Definition at line 26 of file test_app_BaseServerManager.py.

◆ FORMAT

string tests.test_app_BaseServerManager.FORMAT = '%(asctime)s - %(thread)ld - %(threadName)s - %(name)s - %(funcName)s - %(levelname)s - %(message)s'

Definition at line 25 of file test_app_BaseServerManager.py.

◆ format

tests.test_app_BaseServerManager.format

Definition at line 26 of file test_app_BaseServerManager.py.

◆ level

tests.test_app_BaseServerManager.level

Definition at line 26 of file test_app_BaseServerManager.py.