/usr/lib/python2.6/site-packages/openstackclient/tests/common
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/common/test_logs.pyc (8130B)
Ñò
þWc @ s‡ d d k Z d d k Z d d k l Z d d k l Z d e i f d „ ƒ YZ d e i f d „ ƒ YZ d e i f d „ ƒ YZ d S(
iÿÿÿÿN( t logs( t utilst TestContextc B s2 e Z d „ Z d „ Z e i d ƒ d „ ƒ Z RS( c C s¤ t i ƒ } d | _ | i t i t i | ƒ ƒ d | _ | i t i t i | ƒ ƒ d | _ | i t i t i | ƒ ƒ d | _ | i t i
t i | ƒ ƒ d S( Ni i i i ( t mockt Mockt
verbose_levelt assertEqualt loggingt ERRORR t log_level_from_optionst WARNINGt INFOt DEBUG( t selft opts( ( sV /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/common/test_logs.pyt test_log_level_from_options s c C sÿ h d d 6} | i t i t i | ƒ ƒ h d d 6} | i t i t i | ƒ ƒ h d d 6} | i t i t i | ƒ ƒ h d d 6} | i t i t i | ƒ ƒ h d d 6d d 6} | i t i t i | ƒ ƒ h d d 6d d 6} | i t i t i | ƒ ƒ h d d 6d d 6} | i t i t i | ƒ ƒ h d d 6d
d 6} | i t i t i | ƒ ƒ h d d 6d d 6} | i t i t i | ƒ ƒ h d d 6d d 6} | i t i t i | ƒ ƒ h d d 6d
d 6t d 6} | i t i t i | ƒ ƒ d S(
Ni R i i i t criticalt log_levelt errort warningt infot debugt bogus(
R R R R t log_level_from_configR
R R t CRITICALt True( R
t cfg( ( sV /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/common/test_logs.pyt test_log_level_from_config" s,
s warnings.simplefilterc C s[ t i t i ƒ | i d ƒ t i t i ƒ | i d ƒ t i t i ƒ | i d ƒ d S( Nt ignoret once( R t set_warning_filterR R t assert_called_withR
R ( R
t simplefilter( ( sV /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/common/test_logs.pyt test_set_warning_filter: s
( t __name__t
__module__R R R t patchR! ( ( ( sV /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/common/test_logs.pyR s t TestFileFormatterc B s# e Z d „ Z d „ Z d „ Z RS( c C s# t i ƒ } | i d | i ƒ d S( NsF %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s %(message)s( R t _FileFormatterR t fmt( R
t formatter( ( sV /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/common/test_logs.pyt test_nothingF s c C sH d t f d „ ƒ Y} | ƒ } t i d | ƒ } | i d | i ƒ d S( Nt Optsc B s e Z d Z d Z d Z RS( t cloudyt projectyt usernamey( R" R# t cloudt os_project_namet username( ( ( sV /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/common/test_logs.pyR* L s t optionssb %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [cloudy usernamey projecty] %(message)s( t objectR R&