Пример #1
0
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)
Пример #2
0
def testMakeComment(post):
    # spawn an action
    print "Make Comment:"
    comment = a.make_comment(post, "test comment")
    print "Passed" if comment else "Failed"
    return comment
Пример #3
0
 def remove_and_post(self, post, comment):
     Actions.remove_post(self, post)
     Actions.make_comment(post, comment, dist=True)