Files
deb-python-falcon/falcon/testing/__init__.py
Kurt Griffiths 35987b2be8 feat(testing): New test case base, result class, and test resource
Add new testing classes for unittest-style test cases, based on
lessons-learned using the original base class. Port several Falcon
tests to use the new classes (the remainder to be ported in a
subsequent release.) Include wsgiref valdiation by default.

DEPRECATION: The old base class and test resource have been deprecated
    and will be removed in a future release.

Fixes #689
2016-03-02 17:09:31 -06:00

22 lines
1014 B
Python

# Copyright 2013 by Rackspace Hosting, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Hoist classes and functions into the falcon.testing namespace
from falcon.testing.base import TestBase # NOQA
from falcon.testing.helpers import * # NOQA
from falcon.testing.resource import capture_responder_args # NOQA
from falcon.testing.resource import SimpleTestResource, TestResource # NOQA
from falcon.testing.srmock import StartResponseMock # NOQA
from falcon.testing.test_case import Result, TestCase # NOQA