def test_story_new(): facebookid = "*****@*****.**" account = Account.get_by_facebookid(facebookid) assert account story = Story.new(account) story.put() assert story return story
def post(self): #logout accountid = self.session.get('accountid') account = Account.get_by_accountid(accountid) if 1 != account.mod: return story = Story.new(account) params = {} for key in self.request.arguments(): params[key] = self.request.get(key) story.setter(params) self.redirect('/story')