From: Pedro Algarvio Date: Tue, 26 Jun 2007 09:13:08 +0000 (+0000) Subject: Extended the doctest to include tests for the fix on [176]. X-Git-Tag: 1.0~469 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf283d6bf4f00e615771eba60828303d105f356c;p=thirdparty%2Fbabel.git Extended the doctest to include tests for the fix on [176]. --- diff --git a/babel/messages/mofile.py b/babel/messages/mofile.py index 04d6df65..cb7a262f 100644 --- a/babel/messages/mofile.py +++ b/babel/messages/mofile.py @@ -36,6 +36,7 @@ def write_mo(fileobj, catalog, use_fuzzy=False): >>> 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 @@ def write_mo(fileobj, catalog, use_fuzzy=False): 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