# HG changeset patch # User timeless@mozdev.org # Date 1442539235 14400 # Node ID ad4d6c7aea6a0b79b7564093c3eb61ed6b5875b9 # Parent 93395bee98ba121c22ff35375d469154e8b12443 tests: add more doctests for check-translation deprecated diff -r 93395bee98ba -r ad4d6c7aea6a 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')