コード例 #1
0
ファイル: test_comments.py プロジェクト: yoshrote/Columns
	def test_delete_browser_fakeout(self):
		response = self.app.post(url('comment', parent_id=1, id=1), extra_environ=self.extra_environ, params=dict(_method='delete'))
		from columns.model import Comment
		tmp = Comment.get_from_id(1)
		assert tmp is None
コード例 #2
0
ファイル: test_comments.py プロジェクト: yoshrote/Columns
	def test_delete(self):
		response = self.app.delete(url('comment', parent_id=1, id=1), extra_environ=self.extra_environ)
		from columns.model import Comment
		tmp = Comment.get_from_id(1)
		assert tmp is None