Debian Codegraph @

osc_lib/tests/utils/__init__.py

raw
1 # Copyright 2012-2013 OpenStack Foundation
2 # Copyright 2013 Nebula Inc.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License"); you may
5 # not use this file except in compliance with the License. You may obtain
6 # a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 # License for the specific language governing permissions and limitations
14 # under the License.
15
16 import warnings
17
18 from osc_lib.test.base import ParserException, TestCase, TestCommand
19 from osc_lib.tests.test_clientmanager import (
20 BaseTestClientManager as TestClientManager,
21 )
22 from osc_lib.tests.test_shell import (
23 fake_execute,
24 make_shell,
25 opt2attr,
26 opt2env,
27 TestShell,
28 EnvFixture,
29 )
30
31 __all__ = [
32 'fake_execute',
33 'make_shell',
34 'opt2attr',
35 'opt2env',
36 'EnvFixture',
37 'ParserException',
38 'TestCase',
39 'TestClientManager',
40 'TestCommand',
41 'TestShell',
42 ]
43
44 warnings.warn(
45 "The osc_lib.tests.utils module is deprecated for removal and should not "
46 "be used externally. Use the osc_lib.test module instead, which provides "
47 "a public API.",
48 DeprecationWarning,
49 )