def blog_add_comment(self, blog_url): article_id = self.data.get_request_parameter('article_id', default=None) blog_comment = KMBlogComment(self.data) blog_comment.save() return self.blog_page(blog_url, article_id)
def blog_add_comment(self, blog_url): blog_comment = KMBlogComment(self.data) blog_comment.save() return self.blog_page(blog_url)
def setUp(self): initialize(rdb_path='sqlite:///:memory:') self.mocker = Mox() model = KMBlogComment() model.save() # id = 1のデータを登録