/usr/lib/python2.6/site-packages/oslo_config
Edit: /usr/lib/python2.6/site-packages/oslo_config/fixture.pyc (7820B)
Ñò
yDVc @ sE d d k Z d d k Z d d k l Z d e i f d „ ƒ YZ d S( iÿÿÿÿN( t cfgt Configc B s’ e Z d Z e i d „ Z d „ Z d „ Z d „ Z d „ Z d
d „ Z d
d „ Z d
d „ Z
d
d „ Z d
d
„ Z d „ Z d
d „ Z RS( sb Allows overriding configuration settings for the test.
`conf` will be reset on cleanup.
c C s
| | _ d S( N( t conf( t selfR ( ( s8 /tmp/pip-build-lt8jXN/oslo.config/oslo_config/fixture.pyt __init__ s c C s‚ t t | ƒ i ƒ | i | i ƒ | i | i ƒ | i | i i ƒ h | _ t | i d ƒ o | i i
| _ n
d | _ d S( Nt default_config_files(
t superR t setUpt
addCleanupt _reset_default_config_filest _unregister_config_optsR t resett _registered_config_optst hasattrR t _default_config_filest None( R ( ( s8 /tmp/pip-build-lt8jXN/oslo.config/oslo_config/fixture.pyR " s c K sL | i d d ƒ } x3 t i | ƒ D]" \ } } | i i | | | ƒ q" Wd S( sU Override configuration values.
The keyword arguments are the names of configuration options to
override and their values.
If a `group` argument is supplied, the overrides are applied to
the specified configuration option group, otherwise the overrides
are applied to the ``default`` group.
t groupN( t popR t sixt iteritemsR t set_override( R t kwR t kt v( ( s8 /tmp/pip-build-lt8jXN/oslo.config/oslo_config/fixture.pyt config3 s c C s5 x. | i D]# } | i i | i | d | ƒq
Wd S( NR ( R R t unregister_opts( R R ( ( s8 /tmp/pip-build-lt8jXN/oslo.config/oslo_config/fixture.pyR
C s
c C sE t | i d ƒ p d S| i o | i | i _ n
d | i _ d S( NR ( R
R R R R ( R ( ( s8 /tmp/pip-build-lt8jXN/oslo.config/oslo_config/fixture.pyR H s
c C s9 | i i | d | ƒ| i i | t ƒ ƒ i | ƒ d S( sA Register a single option for the test run.
Options registered in this manner will automatically be unregistered
during cleanup.
If a `group` argument is supplied, it will register the new option
to that group, otherwise the option is registered to the ``default``
group.
R N( R t register_optR t
setdefaultt sett add( R t optR ( ( s8 /tmp/pip-build-lt8jXN/oslo.config/oslo_config/fixture.pyR S s
c C s( x! | D] } | i | d | ƒq Wd S( sU Register multiple options for the test run.
This works in the same manner as register_opt() but takes a list of
options as the first argument. All arguments will be registered to the
same group if the ``group`` argument is supplied, otherwise all options
will be registered to the ``default`` group.
R N( R ( R t optsR R ( ( s8 /tmp/pip-build-lt8jXN/oslo.config/oslo_config/fixture.pyt
register_opts` s c C s9 | i i | d | ƒ| i i | t ƒ ƒ i | ƒ d S( s Register a single CLI option for the test run.
Options registered in this manner will automatically be unregistered
during cleanup.
If a `group` argument is supplied, it will register the new option
to that group, otherwise the option is registered to the ``default``
group.
CLI options must be registered before the command line and config files
are parsed. This is to ensure that all CLI options are shown in --help
and option validation works as expected.
R N( R t register_cli_optR R R R ( R R R ( ( s8 /tmp/pip-build-lt8jXN/oslo.config/oslo_config/fixture.pyR! k s c C s( x! | D] } | i | d | ƒq Wd S( s* Register multiple CLI options for the test run.
This works in the same manner as register_opt() but takes a list of
options as the first argument. All arguments will be registered to the
same group if the ``group`` argument is supplied, otherwise all options
will be registered to the ``default`` group.
CLI options must be registered before the command line and config files
are parsed. This is to ensure that all CLI options are shown in --help
and option validation works as expected.
R N( R! ( R R R R ( ( s8 /tmp/pip-build-lt8jXN/oslo.config/oslo_config/fixture.pyt register_cli_opts| s c K sŸ | i i p | i i d g ƒ n | p d n | } t ƒ } t ƒ | |