# Path: dssg/webapp/rest_api.py
# API_VERSION = '1'
# def verify_deployment(deployment_id):
# def compute_similarities(text, models, count=None):
# def detect_language():
# def add_deployment():
# def suggest_categories(deployment_id):
# def add_message(deployment_id):
# def delete_message(deployment_id, message_id):
# def similar_messages(deployment_id):
# def add_report(deployment_id):
# def delete_report(deployment_id, report_id):
# def modify_report(deployment_id, report_id):
# def suggest_locations():
# def extract_entities():
# def suggest_sensitive_info():
# def similar_reports(deployment_id):


from dssg.webapp.rest_api import app
from pprint import pprint
import unittest
import json
#!/usr/bin/python
# -*- coding: utf-8 -*-

"""
These test cases focus on the REST API. They aim to enforce:

- consistency in returned JSON object, corresponding to documentation / user expectation.
- poorly formed REST calls are handled properly and consistently.

"""




API_VERSION = '/v1'


class TestRestApi(unittest.TestCase):

    #
    # Setup / Teardown
    #

    def setUp(self):

# Path: dssg/webapp/rest_api.py
# API_VERSION = '1'
# def verify_deployment(deployment_id):
# def compute_similarities(text, models, count=None):
# def detect_language():
# def add_deployment():
# def suggest_categories(deployment_id):
# def add_message(deployment_id):
# def delete_message(deployment_id, message_id):
# def similar_messages(deployment_id):
# def add_report(deployment_id):
# def delete_report(deployment_id, report_id):
# def modify_report(deployment_id, report_id):
# def suggest_locations():
# def extract_entities():
# def suggest_sensitive_info():
# def similar_reports(deployment_id):


# Path: dssg/tests/test_rest_api.py
from dssg.webapp.rest_api import app
from pprint import pprint
import unittest
import json

#!/usr/bin/python
# -*- coding: utf-8 -*-

"""
These test cases focus on the REST API. They aim to enforce:

- consistency in returned JSON object, corresponding to documentation / user expectation.
- poorly formed REST calls are handled properly and consistently.

"""




API_VERSION = '/v1'


class TestRestApi(unittest.TestCase):

    #
    # Setup / Teardown
    #

    def setUp(self):

        self.app = app.test_client()