def make_post(sub, post, comment): try: #make post and comment post = Actions.make_post_url(sub, post.title, post.url) Actions.make_comment(post, comment) except Exception, e: print str(e)
def testMakeComment(post): # spawn an action print "Make Comment:" comment = a.make_comment(post, "test comment") print "Passed" if comment else "Failed" return comment
def remove_and_post(self, post, comment): Actions.remove_post(self, post) Actions.make_comment(post, comment, dist=True)