diff i18n/check-translation.py @ 26277:ad4d6c7aea6a

tests: add more doctests for check-translation deprecated
author timeless@mozdev.org
date Thu, 17 Sep 2015 21:20:35 -0400
parents 93395bee98ba
children 33894facc180
line wrap: on
line diff
--- a/i18n/check-translation.py	Thu Sep 17 21:20:17 2015 -0400
+++ b/i18n/check-translation.py	Thu Sep 17 21:20:35 2015 -0400
@@ -85,9 +85,16 @@
     >>> deprecatedsetup([ped])
     >>> pe = polib.POEntry(
     ...     msgid = 'Something (DEPRECATED)',
+    ...     msgstr= 'something (DEPRECATED)')
+    >>> match(deprecated, pe)
+    True
+    >>> for e in deprecated(pe): print e
+    >>> pe = polib.POEntry(
+    ...     msgid = 'Something (DEPRECATED)',
     ...     msgstr= 'something (DETACERPED)')
     >>> match(deprecated, pe)
     True
+    >>> for e in deprecated(pe): print e
     >>> pe = polib.POEntry(
     ...     msgid = 'Something (DEPRECATED)',
     ...     msgstr= 'something')