@@ -0,0 +1,1153 @@
+# Copyright 2014 Hewlett-Packard Development Company, L.P.%0A# All Rights Reserved.%0A#%0A#    Licensed under the Apache License, Version 2.0 (the %22License%22); you may%0A#    not use this file except in compliance with the License. You may obtain%0A#    a copy of the License at%0A#%0A#         http://www.apache.org/licenses/LICENSE-2.0%0A#%0A#    Unless required by applicable law or agreed to in writing, software%0A#    distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0A#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the%0A#    License for the specific language governing permissions and limitations%0A#    under the License.%0A%0Aimport cue.tests.api as api_base%0A%0A%0Aclass TestBase(api_base.FunctionalTest):%0A%0A    def test_api_setup(self):%0A        pass%0A%0A    def test_bad_uri(self):%0A        response = self.get_json('/bad/path',%0A                                 expect_errors=True,%0A                                 headers=%7B%22Accept%22: %22application/json%22%7D)%0A        self.assertEqual(404, response.status_int)%0A        self.assertEqual(%22application/json%22, response.content_type)%0A        self.assertTrue(response.json%5B'error_message'%5D)%0A

Add base API Test