# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
from opnfv_testapi.resources import handlers
from opnfv_testapi.resources import testcase_models
from opnfv_testapi.tornado_swagger import swagger
from opnfv_testapi.resources import handlers
from opnfv_testapi.resources import testcase_models
from opnfv_testapi.tornado_swagger import swagger
def tc_error(data):
message = '{} already exists as a testcase in project {}'\
.format(data.name, data.project_name)
def tc_error(data):
message = '{} already exists as a testcase in project {}'\
.format(data.name, data.project_name)
miss_checks = ['name']
db_checks = [(self.db_projects, True, p_query, p_error),
miss_checks = ['name']
db_checks = [(self.db_projects, True, p_query, p_error),