Example #1
0
    def test_deletes_comment(self):
        #deleting
        comment_id = self.comment.id
        comment_delete_args = {'comment_id' : comment_id , 'token' : self.user_deleting.user_token.token}
        deleting_response = delete_comment_request_impl(comment_delete_args)
        assert deleting_response['success'] is True

        #retrieving deletion
        response = deletes_request_impl(self.args)
        assert response['data']['comments'][0] == comment_id
        assert response['success'] is True
Example #2
0
	def test_delete(self):
		response = delete_comment_request_impl(self.args)
		assert response['success'] is True
		assert self.comment.active is False