# HG changeset patch # User palgarvio # Date 1182849188 0 # Node ID 456ee094198742b74de33c9c30b59b558648759a # Parent 743abd4ca3c30c78cedd75cad265803d979785f9 Extended the doctest to include tests for the fix on [176]. diff --git a/babel/messages/mofile.py b/babel/messages/mofile.py --- 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