From f11f26d23dabde24b0bcd67ac81b094aa89eb6c9 Mon Sep 17 00:00:00 2001 From: Trevor Bramwell Date: Fri, 10 Nov 2017 15:43:35 -0800 Subject: Remove 'utils/test' Directory and update INFO utils/test has been migrated to the releng-testresults repo Change-Id: If14a30e6abed1424d1e00b0fae048b7d869ec99b Signed-off-by: Trevor Bramwell --- .../tests/unit/handlers/test_version.py | 36 ---------------------- 1 file changed, 36 deletions(-) delete mode 100644 utils/test/testapi/opnfv_testapi/tests/unit/handlers/test_version.py (limited to 'utils/test/testapi/opnfv_testapi/tests/unit/handlers/test_version.py') diff --git a/utils/test/testapi/opnfv_testapi/tests/unit/handlers/test_version.py b/utils/test/testapi/opnfv_testapi/tests/unit/handlers/test_version.py deleted file mode 100644 index 6ef810f0e..000000000 --- a/utils/test/testapi/opnfv_testapi/tests/unit/handlers/test_version.py +++ /dev/null @@ -1,36 +0,0 @@ -############################################################################## -# Copyright (c) 2016 ZTE Corporation -# feng.xiaowei@zte.com.cn -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# http://www.apache.org/licenses/LICENSE-2.0 -############################################################################## -import httplib -import unittest - -from opnfv_testapi.models import base_models -from opnfv_testapi.tests.unit import executor -from opnfv_testapi.tests.unit.handlers import test_base as base - - -class TestVersionBase(base.TestBase): - def setUp(self): - super(TestVersionBase, self).setUp() - self.list_res = base_models.Versions - self.basePath = '/versions' - - -class TestVersion(TestVersionBase): - @executor.get(httplib.OK, '_get_success') - def test_success(self): - return None - - def _get_success(self, body): - self.assertEqual(len(body.versions), 1) - self.assertEqual(body.versions[0].version, 'v1.0') - self.assertEqual(body.versions[0].description, 'basics') - - -if __name__ == '__main__': - unittest.main() -- cgit 1.2.3-korg