Пример #1
0
 def debug(self, message, text=u""):
     logging.debug(message + u"\t" + text )
     if __debug__:
         if text == u'':
             text = u'This has been a test of the Central Scruuuuutinizer'
         Actions.make_post_text(self.altsub, message, text)
Пример #2
0
def testMakePostText(sub):
    # spawn a  action
    print "Make Post:"
    post = a.make_post_text(sub, "testpost", "please ignore")
    print "Passed" if post else "Failed"
    return post
Пример #3
0
 def info(self, message, text=u''):
     logging.info(message)
     if __debug__:
         if text == u'':
             text = u'This has been a test of the Central Scruuuuutinizer'
         Actions.make_post_text(self.altsub, message, text)