Back to index

rabbitmq-server  2.8.4
Classes | Functions | Variables
rabbitmqadmin-test Namespace Reference

Classes

class  TestRabbitMQAdmin

Functions

def run
def l
def exp_msg

Variables

tuple suite = unittest.TestLoader()

Function Documentation

def rabbitmqadmin-test.exp_msg (   key,
  count,
  redelivered,
  payload 
)

Definition at line 181 of file rabbitmqadmin-test.py.

00181 
00182 def exp_msg(key, count, redelivered, payload):
00183     # routing_key, exchange, message_count, payload, payload_bytes, payload_encoding, properties, redelivered
00184     return [key, '', str(count), payload, str(len(payload)), 'string', '', str(redelivered)]

Here is the caller graph for this function:

def rabbitmqadmin-test.l (   thing)

Definition at line 178 of file rabbitmqadmin-test.py.

00178 
00179 def l(thing):
00180     return ['list', thing, 'name']

Here is the caller graph for this function:

def rabbitmqadmin-test.run (   args,
  stdin = None 
)

Definition at line 169 of file rabbitmqadmin-test.py.

00169 
00170 def run(args, stdin=None):
00171     path = os.path.normpath(os.path.join(os.getcwd(), sys.argv[0], '../../../bin/rabbitmqadmin'))
00172     cmdline = [path]
00173     cmdline.extend(args)
00174     proc = subprocess.Popen(cmdline, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
00175     (stdout, stderr) = proc.communicate(stdin)
00176     returncode = proc.returncode
00177     return (stdout, returncode)

Here is the caller graph for this function:


Variable Documentation

tuple rabbitmqadmin-test.suite = unittest.TestLoader()

Definition at line 187 of file rabbitmqadmin-test.py.