Mercurial > babel > mirror
changeset 174:bd256296086c trunk
Extended the doctest to include tests for the fix on [176].
author | palgarvio |
---|---|
date | Tue, 26 Jun 2007 09:13:08 +0000 |
parents | c100331c727c |
children | 5d32098d8352 |
files | babel/messages/mofile.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/babel/messages/mofile.py +++ b/babel/messages/mofile.py @@ -36,6 +36,7 @@ >>> catalog.add((u'bar', u'baz'), (u'Bahr', u'Batz')) >>> catalog.add('fuz', 'Futz', flags=['fuzzy']) >>> catalog.add('Fizz', '') + >>> catalog.add(('Fuzz', 'Fuzzes'), ('', '')) >>> buf = StringIO() >>> write_mo(buf, catalog) @@ -51,6 +52,10 @@ u'fuz' >>> translations.ugettext('Fizz') u'Fizz' + >>> translations.ugettext('Fuzz') + u'Fuzz' + >>> translations.ugettext('Fuzzes') + u'Fuzzes' :param fileobj: the file-like object to write to :param catalog: the `Catalog` instance