def addfile(url, fname): with open(fname) as f: for line in f: CommentView._post_comment(url, line, author_ip="1.2.3.4", user=None)
def add(url='http://www.default-test.com/', comment='default-test-comment'): CommentView._post_comment(url, comment, author_ip="1.2.3.4", user=None)