/usr/lib/python2.6/site-packages/oslo_config/tests
Edit: /usr/lib/python2.6/site-packages/oslo_config/tests/test_sphinxext.pyc (11504B)
Ñò
7
Wc @ s~ d d k Z d d k Z d d k l Z d d k l Z d d k l Z d e i f d „ ƒ YZ d e i f d „ ƒ YZ d S( iÿÿÿÿN( t base( t cfg( t sphinxextt FormatGroupTestc B s} e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d
„ Z d „ Z
d „ Z RS(
c C st d i t t i d t i ƒ d d d d d d d t i d d d ƒg ƒ ƒ ƒ } | i t
i d
ƒ i ƒ | ƒ d S( Ns
t appt namespacet
group_namet group_objt opt_listt opt_namet helps! this appears in the default groupsÀ
.. oslo.config:group:: DEFAULT
.. oslo.config:option:: opt_name
:Type: string
:Default: ``
``
this appears in the default group
(
t joint listR t
_format_groupt mockt Mockt NoneR t StrOptt assertEqualt textwrapt dedentt lstrip( t selft results( ( sE /tmp/pip-build-wCUybK/oslo.config/oslo_config/tests/test_sphinxext.pyt test_none_in_default s
c C sz d i t t i d t i ƒ d d d d d d d t i d d d d
d ƒg ƒ ƒ ƒ } | i t
i d ƒ i ƒ | ƒ d S(
Ns
R R R R R R t defaults this is the defaultR
s! this appears in the default groupsÍ
.. oslo.config:group:: DEFAULT
.. oslo.config:option:: opt_name
:Type: string
:Default: ``this is the default``
this appears in the default group
(
R R R R
R R R R R R R R R ( R R ( ( sE /tmp/pip-build-wCUybK/oslo.config/oslo_config/tests/test_sphinxext.pyt test_with_default_value0 s
c C st d i t t i d t i ƒ d d d d d d d t i d d d ƒg ƒ ƒ ƒ } | i t
i d
ƒ i ƒ | ƒ d S( Ns
R R R R R R t mini s°
.. oslo.config:group:: DEFAULT
.. oslo.config:option:: opt_name
:Type: integer
:Default: ````
:Minimum Value: 1
(
R R R R
R R R R t IntOptR R R R ( R R ( ( sE /tmp/pip-build-wCUybK/oslo.config/oslo_config/tests/test_sphinxext.pyt
test_with_minH s c C st d i t t i d t i ƒ d d d d d d d t i d d d ƒg ƒ ƒ ƒ } | i t
i d
ƒ i ƒ | ƒ d S( Ns
R R R R R R R i s°
.. oslo.config:group:: DEFAULT
.. oslo.config:option:: opt_name
:Type: integer
:Default: ````
:Minimum Value: 0
(
R R R R
R R R R R R R R R ( R R ( ( sE /tmp/pip-build-wCUybK/oslo.config/oslo_config/tests/test_sphinxext.pyt test_with_min_0^ s c C st d i t t i d t i ƒ d d d d d d d t i d d d ƒg ƒ ƒ ƒ } | i t
i d
ƒ i ƒ | ƒ d S( Ns
R R R R R R t maxi s°
.. oslo.config:group:: DEFAULT
.. oslo.config:option:: opt_name
:Type: integer
:Default: ````
:Maximum Value: 1
(
R R R R
R R R R R R R R R ( R R ( ( sE /tmp/pip-build-wCUybK/oslo.config/oslo_config/tests/test_sphinxext.pyt
test_with_maxt s c C st d i t t i d t i ƒ d d d d d d d t i d d d ƒg ƒ ƒ ƒ } | i t
i d
ƒ i ƒ | ƒ d S( Ns
R R R R R R R i s°
.. oslo.config:group:: DEFAULT
.. oslo.config:option:: opt_name
:Type: integer
:Default: ````
:Maximum Value: 0
(
R R R R
R R R R R R R R R ( R R ( ( sE /tmp/pip-build-wCUybK/oslo.config/oslo_config/tests/test_sphinxext.pyt test_with_max_0Š s c C sƒ d i t t i d t i ƒ d d d d d d d t i d d d d
d d d g ƒg ƒ ƒ ƒ } | i t
i d
ƒ i ƒ | ƒ d S( Ns
R R R R R R t choicest at bt ct sÀ
.. oslo.config:group:: DEFAULT
.. oslo.config:option:: opt_name
:Type: string
:Default: ````
:Valid Values: a, b, c, , ''
(
R R R R
R R R R R R R R R ( R R ( ( sE /tmp/pip-build-wCUybK/oslo.config/oslo_config/tests/test_sphinxext.pyt test_with_choices s $ c C sw d i t t i d t i ƒ d d d d d t i d ƒ d t i d ƒ g ƒ ƒ ƒ } | i
t i d ƒ i
ƒ | ƒ d S(
Ns
R R R t groupR R R s‘
.. oslo.config:group:: group
.. oslo.config:option:: opt_name
:Type: string
:Default: ````
( R R R R
R R R R t OptGroupR R R R R ( R R ( ( sE /tmp/pip-build-wCUybK/oslo.config/oslo_config/tests/test_sphinxext.pyt test_group_obj_without_help¶ s c C s} d i t t i d t i ƒ d d d d d t i d d d ƒd t i d
ƒ g ƒ ƒ ƒ } | i
t i d ƒ i
ƒ | ƒ d S( Ns
R R R R( R R
s
group helpR R s§
.. oslo.config:group:: group
group help
.. oslo.config:option:: opt_name
:Type: string
:Default: ````
( R R R R
R R R R R) R R R R R ( R R ( ( sE /tmp/pip-build-wCUybK/oslo.config/oslo_config/tests/test_sphinxext.pyt test_group_obj_with_helpÉ s
c C st d i t t i d t i ƒ d d d d d d d t i d d d ƒg ƒ ƒ ƒ } | i t
i d ƒ i ƒ | ƒ d S(
Ns
R R R R R R t deprecated_namesI
.. oslo.config:group:: DEFAULT
.. oslo.config:option:: opt_name
:Type: string
:Default: ````
.. list-table:: Deprecated Variations
:header-rows: 1
- * Group
* Name
- * DEFAULT
* deprecated_name
(
R R R R
R R R R R R R R R ( R R ( ( sE /tmp/pip-build-wCUybK/oslo.config/oslo_config/tests/test_sphinxext.pyt test_deprecated_optsÞ s c C s{ d i t t i d t i ƒ d d d d d d d t i d d t d d
ƒg ƒ ƒ ƒ } | i
d | ƒ | i
d
| ƒ d S( Ns
R R R R R R t deprecated_for_removalt deprecated_reasons because I said sos .. warning::( R R R R
R R R R R t Truet assertIn( R R ( ( sE /tmp/pip-build-wCUybK/oslo.config/oslo_config/tests/test_sphinxext.pyt test_deprecated_for_removalü s c C st d i t t i d t i ƒ d d d d d d d t i d d t ƒg ƒ ƒ ƒ } | i
t i d ƒ i
ƒ | ƒ d S(
Ns
R R R R R R t mutables×
.. oslo.config:group:: DEFAULT
.. oslo.config:option:: opt_name
:Type: integer
:Default: ````
:Mutable: This option can be changed without restarting.
( R R R R
R R R R R R0 R R R R ( R R ( ( sE /tmp/pip-build-wCUybK/oslo.config/oslo_config/tests/test_sphinxext.pyt test_mutable s c C st d i t t i d t i ƒ d d d d d d d t i d d t ƒg ƒ ƒ ƒ } | i
t i d ƒ i
ƒ | ƒ d S(
Ns
R R R R R R R3 s”
.. oslo.config:group:: DEFAULT
.. oslo.config:option:: opt_name
:Type: integer
:Default: ````
( R R R R
R R R R R t FalseR R R R ( R R ( ( sE /tmp/pip-build-wCUybK/oslo.config/oslo_config/tests/test_sphinxext.pyt test_not_mutable" s ( t __name__t
__module__R R R R R R! R' R* R+ R- R2 R4 R6 ( ( ( sE /tmp/pip-build-wCUybK/oslo.config/oslo_config/tests/test_sphinxext.pyR s t FormatOptionHelpTestc B s¤ e Z e i d ƒ e i d ƒ d „ ƒ ƒ Z e i d ƒ e i d ƒ d „ ƒ ƒ Z e i d ƒ e i d ƒ d „ ƒ ƒ Z e i d ƒ e i d ƒ d „ ƒ ƒ Z RS( s oslo_config.generator._list_optss# oslo_config.sphinxext._format_groupc C sµ d d d g f g f d d d g f g f g | _ t t i d d d d d g d t ƒ ƒ | i d d d d d d d
d d d g ƒ | i d d d d d d d
d d d g ƒ d S( Nt
namespace1t opt1t
namespace2t opt2R t
namespacest split_namespacesR R R R ( R t return_valueR R t _format_option_helpR0 t assert_any_call( R R
t
_list_opts( ( sE /tmp/pip-build-wCUybK/oslo.config/oslo_config/tests/test_sphinxext.pyt test_split_namespaces: s$
c C s d d d g f g f d d d g f g f g | _ t t i d d d d d g d t ƒ ƒ | i d d d d d d d
d d d d g ƒ d S( NR: R; R<