Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
test_xmlrpcbot.TestXMLRPCBotAPIs Class Reference

List of all members.

Public Member Functions

def setup_class
def testReportError
def testWanrNoCredentials

Public Attributes

 queue_in
 queue_out
 bot

Detailed Description

Definition at line 21 of file test_xmlrpcbot.py.


Member Function Documentation

Definition at line 22 of file test_xmlrpcbot.py.

00022 
00023     def setup_class(self):
00024         self.queue_in = Queue()
00025         self.queue_out = Queue()
00026         self.bot = xmlrpcbot.XMLRPCClient(BotConfig, self.queue_in, self.queue_out)

Definition at line 27 of file test_xmlrpcbot.py.

00027 
00028     def testReportError(self):
00029         print "report_error() should put a command in the output queue"
00030         self.bot.report_error(["dude@example.com"], "Error %(err)s!", data={'err': 'bar!'})
00031         self.queue_out.get(False)

Definition at line 32 of file test_xmlrpcbot.py.

00032 
00033     def testWanrNoCredentials(self):
00034         print "warn_no_credentials() should put a command in the output queue"
00035         self.bot.warn_no_credentials(["dude@example.com"])
00036         self.queue_out.get(False)
00037 

Member Data Documentation

Definition at line 25 of file test_xmlrpcbot.py.

Definition at line 23 of file test_xmlrpcbot.py.

Definition at line 24 of file test_xmlrpcbot.py.


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