tests: add more doctests for check-translation deprecated
authortimeless@mozdev.org
Thu, 17 Sep 2015 21:20:35 -0400
changeset 26277 ad4d6c7aea6a
parent 26276 93395bee98ba
child 26278 be44d23cb9f1
tests: add more doctests for check-translation deprecated
i18n/check-translation.py
--- 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')