/usr/lib/python2.6/site-packages/oslo_i18n
Edit: /usr/lib/python2.6/site-packages/oslo_i18n/fixture.pyc (7398B)
Ñò
yDVc @ s» d Z d d k Z 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 „ Z d e i f d
„ ƒ YZ
d S( s+ Test fixtures for working with oslo_i18n.
iÿÿÿÿN( t _lazy( t _messaget Translationc B s, e Z d Z d d „ Z d „ Z d „ Z RS( s Fixture for managing translatable strings.
This class provides methods for creating translatable strings
using both lazy translation and immediate translation. It can be
used to generate the different types of messages returned from
oslo_i18n to test code that may need to know about the type to
handle them differently (for example, error handling in WSGI apps,
or logging).
Use this class to generate messages instead of toggling the global
lazy flag and using the regular translation factory.
s test-domainc C s
| | _ d S( sí Initialize the fixture.
:param domain: The translation domain. This is not expected to
coincide with an actual set of message
catalogs, but it can.
:type domain: str
N( t domain( t selfR ( ( s4 /tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/fixture.pyt __init__( s c C s t i | d | i ƒS( s× Return a lazily translated message.
:param msg: Input message string. May optionally include
positional or named string interpolation markers.
:type msg: str or unicode
R ( R t MessageR ( R t msg( ( s4 /tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/fixture.pyt lazy2 s c C s
t i | ƒ S( sñ Return a string as though it had been translated immediately.
:param msg: Input message string. May optionally include
positional or named string interpolation markers.
:type msg: str or unicode
( t sixt text_type( R R ( ( s4 /tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/fixture.pyt immediate<