changeset 176:b29bb8629a68

Extended the doctest to include tests for the fix on [176].
author palgarvio
date Tue, 26 Jun 2007 09:13:08 +0000
parents c223445fdb82
children 47f6c31e9a24
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
Copyright (C) 2012-2017 Edgewall Software